Use email.message.EmailMessage for received emails
Abierto
tech-debt
- Lenguaje dominante
- Python
- Estrellas
- 373
- Forks
- 105
- Merge medio
- 4 min
- PR fusionados (30 d)
- 2
Descripción
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`
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.