diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-29 16:57:46 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-03-29 17:02:39 +0100 |
commit | f92898a226c163e8084c3ffd9fff83ccdd66a802 (patch) | |
tree | a696edd4c024d57daa9d3292de3530b067cc251b /src/libmime/content_type.h | |
parent | 5f026c6984811b4109ca197f471d13978bcdc65e (diff) | |
download | rspamd-f92898a226c163e8084c3ffd9fff83ccdd66a802.tar.gz rspamd-f92898a226c163e8084c3ffd9fff83ccdd66a802.zip |
[Feature] Allow to process filenames from content type
Diffstat (limited to 'src/libmime/content_type.h')
-rw-r--r-- | src/libmime/content_type.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/libmime/content_type.h b/src/libmime/content_type.h index 57fe0e6a3..9d5393e09 100644 --- a/src/libmime/content_type.h +++ b/src/libmime/content_type.h @@ -50,13 +50,15 @@ struct rspamd_content_type { GHashTable *attrs; /* Can be empty */ }; +enum rspamd_contetn_disposition_type { + RSPAMD_CT_UNKNOWN = 0, + RSPAMD_CT_INLINE = 1, + RSPAMD_CT_ATTACHMENT = 2, +}; + struct rspamd_content_disposition { gchar *lc_data; - enum { - RSPAMD_CT_UNKNOWN = 0, - RSPAMD_CT_INLINE = 1, - RSPAMD_CT_ATTACHMENT = 2, - } type; + enum rspamd_contetn_disposition_type type; rspamd_ftok_t filename; GHashTable *attrs; /* Can be empty */ }; |