Does not work on Python 3.6

Bug #1654334 reported by Aurélien Bompard on 2017-01-05
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
lazr.smtptest
Undecided
Unassigned

Bug Description

On Python 3.6, the default value for the 'decode_data' argument in smtpd.SMTPServer changed from True to False. As a result, process_message() gets bytestrings instead of unicode strings and the email.message_from_string() converter fails.

A fix is attached. This parameter was not available in Python 3.4, so the attached patch detects the Python version and sets the parameter if necessary.

Aurélien Bompard (abompard) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers