Add p tags to whitelist and prefer text/plain
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user