diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-28 12:01:21 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-01-28 12:09:08 +0000 |
commit | 2f78615bf95f30484af69abd64db0e29765d1de1 (patch) | |
tree | 499d2fece7fc1fd6bdf460fa507ae834817b4722 /src/libmime/content_type.h | |
parent | b443d8260a1200e3b9ff7de5a0812a79fb83dafe (diff) | |
download | rspamd-2f78615bf95f30484af69abd64db0e29765d1de1.tar.gz rspamd-2f78615bf95f30484af69abd64db0e29765d1de1.zip |
[Feature] Core: Support RFC2231 encoding in headers
Diffstat (limited to 'src/libmime/content_type.h')
-rw-r--r-- | src/libmime/content_type.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libmime/content_type.h b/src/libmime/content_type.h index 554aad6a1..68b1b8107 100644 --- a/src/libmime/content_type.h +++ b/src/libmime/content_type.h @@ -34,9 +34,18 @@ enum rspamd_content_type_flags { #define IS_CT_TEXT(ct) ((ct) && ((ct)->flags & RSPAMD_CONTENT_TYPE_TEXT)) #define IS_CT_MESSAGE(ct) ((ct) &&((ct)->flags & RSPAMD_CONTENT_TYPE_MESSAGE)) +enum rspamd_content_param_flags { + RSPAMD_CONTENT_PARAM_NORMAL = 0, + RSPAMD_CONTENT_PARAM_RFC2231 = (1 << 0), + RSPAMD_CONTENT_PARAM_PIECEWISE = (1 << 1), + RSPAMD_CONTENT_PARAM_BROKEN = (1 << 2), +}; + struct rspamd_content_type_param { rspamd_ftok_t name; rspamd_ftok_t value; + guint rfc2231_id; + enum rspamd_content_param_flags flags; struct rspamd_content_type_param *prev, *next; }; |