]> source.dussan.org Git - rspamd.git/commitdiff
[CritFix] Fix mime headers processing
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 May 2016 11:05:22 +0000 (12:05 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 24 May 2016 11:06:07 +0000 (12:06 +0100)
Issue: #634
Reported by: @AdUser

src/libmime/mime_expressions.c

index a29b52252062d70ce69656d71cecffc16504daa0..e0c0aa479254dea4fd20ace1815c68242bcf37c1 100644 (file)
@@ -635,7 +635,8 @@ set:
                else {
                        /* Register new item in the cache */
                        if (mime_atom->d.re->type == RSPAMD_RE_HEADER ||
-                                       mime_atom->d.re->type == RSPAMD_RE_RAWHEADER) {
+                                       mime_atom->d.re->type == RSPAMD_RE_RAWHEADER ||
+                                       mime_atom->d.re->type == RSPAMD_RE_MIMEHEADER) {
 
                                if (mime_atom->d.re->header != NULL) {
                                        own_re = mime_atom->d.re->regexp;