aiosmtpd
aiosmtpd copied to clipboard
Use email.message.EmailMessage for received emails
trafficstars
Currently aiosmtpd uses email.message.Message to represent a received email. Since version 3.6 (I believe) the preferred class according to python documentation is email.message.EmailMessage.
Making this change would bring aiosmtpd in line with the supported versions of python (currently >= 3.7). It would, however, be a breaking change.
My quick look at the code suggests that the only changes needed to accomplish this would be modifications to:
handlers.Messagehandlers.Mailbox
Making this change would bring aiosmtpd in line with the supported versions of python (currently >= 3.7). It would, however, be a breaking change.
We will implement this in 2.0 then, not in the current major version lineage 😊