diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-02 20:42:40 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-10-02 20:43:28 +0100 |
commit | c9b0a2a75706bf5ef82aa0318419b3655af56513 (patch) | |
tree | e1c42496856e9bbb1f3d786e4c3f603603aa970d /src/libmime/mime_headers.h | |
parent | 08667a7acad7021eefda5a84b9c7c7c6eeb796df (diff) | |
download | rspamd-c9b0a2a75706bf5ef82aa0318419b3655af56513.tar.gz rspamd-c9b0a2a75706bf5ef82aa0318419b3655af56513.zip |
[Feature] Implement headers flags in mime parser
MFH: rspamd-1.6
Diffstat (limited to 'src/libmime/mime_headers.h')
-rw-r--r-- | src/libmime/mime_headers.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/libmime/mime_headers.h b/src/libmime/mime_headers.h index 14ece02e6..03a7beae9 100644 --- a/src/libmime/mime_headers.h +++ b/src/libmime/mime_headers.h @@ -28,15 +28,18 @@ enum rspamd_rfc2047_encoding { enum rspamd_mime_header_special_type { RSPAMD_HEADER_GENERIC = 0, - RSPAMD_HEADER_RECEIVED = 1, - RSPAMD_HEADER_TO, - RSPAMD_HEADER_CC, - RSPAMD_HEADER_BCC, - RSPAMD_HEADER_FROM, - RSPAMD_HEADER_MESSAGE_ID, - RSPAMD_HEADER_SUBJECT, - RSPAMD_HEADER_RETURN_PATH, - RSPAMD_HEADER_DELIVERED_TO, + RSPAMD_HEADER_RECEIVED = 1 << 0, + RSPAMD_HEADER_TO = 1 << 2, + RSPAMD_HEADER_CC = 1 << 3, + RSPAMD_HEADER_BCC = 1 << 4, + RSPAMD_HEADER_FROM = 1 << 5, + RSPAMD_HEADER_MESSAGE_ID = 1 << 6, + RSPAMD_HEADER_SUBJECT = 1 << 7, + RSPAMD_HEADER_RETURN_PATH = 1 << 8, + RSPAMD_HEADER_DELIVERED_TO = 1 << 9, + RSPAMD_HEADER_SENDER = 1 << 10, + RSPAMD_HEADER_RCPT = 1 << 11, + RSPAMD_HEADER_UNIQUE = 1 << 12 }; struct rspamd_mime_header { |