Add option to parse newer EmailMessage type from mails
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Mon, 15 Jul 2019 11:06:08 +0000 (13:06 +0200)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Thu, 8 Aug 2019 09:54:43 +0000 (11:54 +0200)
commit4b44f515a98d16114153437c9782185dafcdc80c
tree8dbc4d0b877d0f1af55f8e6d711d8d968e8be7e4
parent1d21262cc9765b2cf8192753fb148fb692a7de88
Add option to parse newer EmailMessage type from mails

Sofar, parser policy was not specified, so "compat32" was used for compatibility
with python 3.2. Changing to the more modern "default" policy returns a different
type of message (EmailMessage instead of Message) that has quite some differences.
For example, EmailMessage.get(header_name) returns no longer str but a Header object.
This would break lots of code so use the old compat32 as default still.
src/mail_utils.py