aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/content_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmime/content_type.h')
-rw-r--r--src/libmime/content_type.h9
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;
};