summaryrefslogtreecommitdiff
path: root/alot/mail/policy.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/mail/policy.py')
-rw-r--r--alot/mail/policy.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/alot/mail/policy.py b/alot/mail/policy.py
index 1b9f07c3..6125f8f7 100644
--- a/alot/mail/policy.py
+++ b/alot/mail/policy.py
@@ -6,13 +6,17 @@ import email.headerregistry as _hdr
from . import headers as HDR
+# here we define our custom policy that handles additional headers
+
_headers = {
- HDR.X_BEEN_THERE : _hdr.UniqueAddressHeader,
- HDR.X_MAILING_LIST : _hdr.UniqueAddressHeader,
+ HDR.X_BEEN_THERE : _hdr.UniqueAddressHeader,
+ HDR.X_MAILING_LIST : _hdr.UniqueAddressHeader,
+ HDR.MAIL_FOLLOWUP_TO : _hdr.UniqueAddressHeader,
+ HDR.MAIL_REPLY_TO : _hdr.UniqueAddressHeader,
}
-# here we define our custom policy that handles additional headers
-# derive from SMTP
+# derive from SMTP, but create a new instance to get our own
+# instance of header_factory
p = _p.EmailPolicy() + _p.SMTP
for h, t in _headers.items():