Strip sigs from plain part
Anirudh Oppiliappan x@icyphox.sh
Wed, 29 Sep 2021 16:34:36 +0530
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
mail/utils.go
→
mail/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()