all repos — navani @ 141610bab0e2918d3fc263404929ab38414afcc5

forlater's primary mail processing service

Strip sigs from plain part
Anirudh Oppiliappan x@icyphox.sh
Wed, 29 Sep 2021 16:34:36 +0530
commit

141610bab0e2918d3fc263404929ab38414afcc5

parent

cb68ef039193a74e8c300c33a3f9a19e9f9ef309

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M mail/utils.gomail/utils.go

@@ -39,7 +39,7 @@

// Returns the main body of the email; hopefully containing URLs. func MailBody(parts map[string]string) (string, error) { if plain, ok := parts["text/plain"]; ok { - return plain, nil + return stripSignature(plain), nil } else if html, ok := parts["text/html"]; ok { p := bluemonday.NewPolicy() p.AllowStandardURLs()