aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/content_type.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/libmime/content_type.c b/src/libmime/content_type.c
index 240e2fab5..f115bcb31 100644
--- a/src/libmime/content_type.c
+++ b/src/libmime/content_type.c
@@ -427,7 +427,16 @@ rspamd_content_type_parse (const gchar *in,
res->flags |= RSPAMD_CONTENT_TYPE_TEXT|RSPAMD_CONTENT_TYPE_DSN;
}
else {
- res->flags |= RSPAMD_CONTENT_TYPE_MESSAGE;
+ RSPAMD_FTOK_ASSIGN (&srch, "notification");
+
+ if (rspamd_substring_search_caseless (res->subtype.begin,
+ res->subtype.len, srch.begin, srch.len) != -1) {
+ res->flags |= RSPAMD_CONTENT_TYPE_TEXT|
+ RSPAMD_CONTENT_TYPE_DSN;
+ }
+ else {
+ res->flags |= RSPAMD_CONTENT_TYPE_MESSAGE;
+ }
}
}
}