mailgun / flanker

Python email address and Mime parsing library
http://www.mailgun.com
Apache License 2.0
1.63k stars 204 forks source link

Create adaptor module _email for the standard email package #192

Closed horkhe closed 6 years ago

horkhe commented 6 years ago

Module _email is introduced to hide all calls to the standard email package in one place. The package behaviour changed considerably between Python 2 and Python 3, and this change is supposed to simplify further work on Python 3 support.

Besides the library now consistently produces all CRLF ended strings, previously it was a mixture of CRLF and LF depending on whether Flanker native code or the standard email package was used to produce a line of code.