RSPAMD_FTOK_ASSIGN (&srch, "message");
if (rspamd_ftok_cmp (&res->type, &srch) == 0) {
- res->flags |= RSPAMD_CONTENT_TYPE_MESSAGE;
+ RSPAMD_FTOK_ASSIGN (&srch, "delivery-status");
+
+ if (rspamd_ftok_cmp (&res->subtype, &srch) == 0) {
+ res->flags |= RSPAMD_CONTENT_TYPE_TEXT|RSPAMD_CONTENT_TYPE_DSN;
+ }
+ else {
+ res->flags |= RSPAMD_CONTENT_TYPE_MESSAGE;
+ }
}
}
}
RSPAMD_CONTENT_TYPE_MULTIPART = 1 << 1,
RSPAMD_CONTENT_TYPE_TEXT = 1 << 2,
RSPAMD_CONTENT_TYPE_MESSAGE = 1 << 3,
+ RSPAMD_CONTENT_TYPE_DSN = 1 << 4,
};
#define IS_CT_MULTIPART(ct) ((ct)->flags & RSPAMD_CONTENT_TYPE_MULTIPART)