diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-11-20 15:09:51 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-11-20 15:15:36 +0100 |
commit | d38607586467ab1cdc858756402de79cd5bf516b (patch) | |
tree | a5252c8289129f372d93bb02031172b1bb5c55d6 /alot/mail/headers.py | |
parent | 91b6b4f25e0fb8ccc9d96893f19499b62f73c78b (diff) |
commands/thread: use named constants instead of string literals
This is safer against typos.
Diffstat (limited to 'alot/mail/headers.py')
-rw-r--r-- | alot/mail/headers.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/alot/mail/headers.py b/alot/mail/headers.py new file mode 100644 index 00000000..de301b99 --- /dev/null +++ b/alot/mail/headers.py @@ -0,0 +1,18 @@ +# This file is released under the GNU GPL, version 3 or a later revision. +# For further details see the COPYING file + +FROM = 'From' +TO = 'To' +CC = 'Cc' +BCC = 'Bcc' +REPLY_TO = 'Reply-To' +MAIL_REPLY_TO = 'Mail-Reply-To' +MAIL_FOLLOWUP_TO = 'Mail-Followup-To' + +SUBJECT = 'Subject' + +IN_REPLY_TO = 'In-Reply-To' +REFERENCES = 'references' + +X_BEEN_THERE = 'X-Been-There' +X_MAILING_LIST = 'X-Mailing-List' |