On Fri, Jan 26 2018, Peter Münster wrote:
ImportError: cannot import name EmailMessage
What should I do please?
Ok, found it. This patch is needed: --8<---------------cut here---------------start------------->8--- --- /usr/lib/python2.7/site-packages/django_mailman3-1.2.0a1-py2.7.egg/django_mailman3/lib/scrub.py~ 2018-01-26 08:43:30.027617074 +0100 +++ /usr/lib/python2.7/site-packages/django_mailman3-1.2.0a1-py2.7.egg/django_mailman3/lib/scrub.py 2018-01-26 11:37:08.737066069 +0100 @@ -23,7 +23,7 @@ from mimetypes import guess_all_extensions from email.errors import HeaderParseError from email.header import make_header, decode_header -from email.message import EmailMessage +from email.message import Message # Path characters for common platforms PRE = re.compile(r'[/\\:]') @@ -63,7 +63,7 @@ sanitize = Sanitize.SANITIZE_HTML def __init__(self, msg): - assert isinstance(msg, EmailMessage) + assert isinstance(msg, Message) self.msg = msg def scrub(self): --8<---------------cut here---------------end--------------->8--- -- Peter