Add p tags to whitelist and prefer text/plain

This commit is contained in:
2019-10-22 20:33:53 +02:00
parent 73215bbef7
commit bf28ba64cb

View File

@@ -71,6 +71,7 @@ class EMailNotification(BaseNotification):
"i",
"img",
"li",
"p",
"span",
"table",
"td",
@@ -229,7 +230,7 @@ class EMailNotification(BaseNotification):
return BeautifulSoup(text, "lxml")
def get_text_multipart(self, queueid, msg, preferred=_html_text):
def get_text_multipart(self, queueid, msg, preferred=_plain_text):
"Get the mail text of a multipart email in html form."
soup = None