This is the beginning part of #142, without the move to email.message.EmailMessage.
Moving consumed API to only what is provided by EmailMessage.
.body -> .get_payload(), .set_payload()
.headers -> .items() and .get_all()
Order of insertion is now preserved exactly
Recommend / use bytes() over str()
We can restore .headers or .body if anyone is using them with a deprecation warning instead, but I didn't see anything beyond bytes() and str() from light searching.
This is the beginning part of #142, without the move to
email.message.EmailMessage
.Moving consumed API to only what is provided by
EmailMessage
..body
->.get_payload()
,.set_payload()
.headers
->.items()
and.get_all()
bytes()
overstr()
We can restore
.headers
or.body
if anyone is using them with a deprecation warning instead, but I didn't see anything beyondbytes()
andstr()
from light searching.