]> 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:05:22 +0000 (12:05 +0100)
Issue: #634
Reported by: @AdUser

src/libmime/mime_expressions.c

index af0378e1dfc8c9bc1d157f2352496fd2637abe11..3fad7c568b4b76785b25c9cfd34148b75665b221 100644 (file)
@@ -636,7 +636,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;