Add p tags to whitelist and prefer text/plain
This commit is contained in:
@@ -71,6 +71,7 @@ class EMailNotification(BaseNotification):
|
|||||||
"i",
|
"i",
|
||||||
"img",
|
"img",
|
||||||
"li",
|
"li",
|
||||||
|
"p",
|
||||||
"span",
|
"span",
|
||||||
"table",
|
"table",
|
||||||
"td",
|
"td",
|
||||||
@@ -229,7 +230,7 @@ class EMailNotification(BaseNotification):
|
|||||||
|
|
||||||
return BeautifulSoup(text, "lxml")
|
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."
|
"Get the mail text of a multipart email in html form."
|
||||||
soup = None
|
soup = None
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user