aiosmtpd icon indicating copy to clipboard operation
aiosmtpd copied to clipboard

Use email.message.EmailMessage for received emails

Open bebleo opened this issue 2 years ago • 1 comments
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.Message
  • handlers.Mailbox

bebleo avatar Jun 19 '23 15:06 bebleo

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 😊

pepoluan avatar Oct 23 '23 04:10 pepoluan