mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Convert to string before calling the method.
see #643 Conflicts: modoboa/extensions/amavis/sql_listing.py
This commit is contained in:
@@ -36,15 +36,13 @@ class SQLemail(Email):
|
||||
|
||||
@property
|
||||
def msg(self):
|
||||
"""
|
||||
"""
|
||||
"""Get message's content."""
|
||||
import email
|
||||
|
||||
if self._msg is None:
|
||||
qmails = get_connector().get_mail_content(self.mailid)
|
||||
self._msg = email.message_from_string(
|
||||
"".join([qm.mail_text for qm in qmails])
|
||||
)
|
||||
mail_text = "".join([qm.mail_text for qm in qmails])
|
||||
self._msg = email.message_from_string(mail_text.encode("utf-8"))
|
||||
self._parse(self._msg)
|
||||
return self._msg
|
||||
|
||||
|
||||
Reference in New Issue
Block a user