aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/content_type.c5
-rw-r--r--src/libmime/content_type.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/libmime/content_type.c b/src/libmime/content_type.c
index 3de9bdb12..1540e6b23 100644
--- a/src/libmime/content_type.c
+++ b/src/libmime/content_type.c
@@ -709,6 +709,11 @@ rspamd_content_type_parse (const gchar *in,
if (rspamd_ftok_casecmp (&res->type, &srch) == 0) {
res->flags |= RSPAMD_CONTENT_TYPE_MULTIPART;
+
+ RSPAMD_FTOK_ASSIGN (&srch, "encrypted");
+ if (rspamd_ftok_casecmp (&res->subtype, &srch) == 0) {
+ res->flags |= RSPAMD_CONTENT_TYPE_ENCRYPTED;
+ }
}
else {
RSPAMD_FTOK_ASSIGN (&srch, "text");
diff --git a/src/libmime/content_type.h b/src/libmime/content_type.h
index 49bba4269..3991e6785 100644
--- a/src/libmime/content_type.h
+++ b/src/libmime/content_type.h
@@ -32,6 +32,7 @@ enum rspamd_content_type_flags {
RSPAMD_CONTENT_TYPE_MESSAGE = 1 << 3,
RSPAMD_CONTENT_TYPE_DSN = 1 << 4,
RSPAMD_CONTENT_TYPE_MISSING = 1 << 5,
+ RSPAMD_CONTENT_TYPE_ENCRYPTED = 1 << 1,
};
enum rspamd_content_param_flags {