aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/content_type.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-29 16:57:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-03-29 17:02:39 +0100
commitf92898a226c163e8084c3ffd9fff83ccdd66a802 (patch)
treea696edd4c024d57daa9d3292de3530b067cc251b /src/libmime/content_type.h
parent5f026c6984811b4109ca197f471d13978bcdc65e (diff)
downloadrspamd-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.h12
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 */
};