From: Vsevolod Stakhov Date: Tue, 24 May 2016 11:05:22 +0000 (+0100) Subject: [CritFix] Fix mime headers processing X-Git-Tag: 1.3.0~443 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=29ff7ec22cf1a32658f61811c178f79df9a4a0ce;p=rspamd.git [CritFix] Fix mime headers processing Issue: #634 Reported by: @AdUser --- diff --git a/src/libmime/mime_expressions.c b/src/libmime/mime_expressions.c index af0378e1d..3fad7c568 100644 --- a/src/libmime/mime_expressions.c +++ b/src/libmime/mime_expressions.c @@ -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;