Skip to content

Commit

Permalink
some missing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Carsten Seeger committed Apr 7, 2020
1 parent 8781076 commit bbe89e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mailparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (m Mail2Most) parseHTML(b []byte, profile int) ([]byte, error) {

// Finally, if we're lucky enough to have a "Sent from" footer to the reply, kill everything else. This is
// typical on iOS, Samsung, and Blackberry devices. If the user has a custom signature, this won't help.
sf := regexp.MustCompile(`Sent ([Ff]rom|via).*`)
sf := regexp.MustCompile(`(Sent [Ff]rom|Sent via).*`)
b = sf.ReplaceAll(b, []byte(""))

return b, nil
Expand Down

0 comments on commit bbe89e3

Please sign in to comment.