]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Strip message id from enclosing spaces
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Feb 2022 21:34:53 +0000 (21:34 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Feb 2022 21:34:53 +0000 (21:34 +0000)
Issue: #4081

src/libmime/mime_headers.c

index b819f0ec55b266c35783ad5328ae39b381815cf0..f4001d640249226ad4854b03a8ef5ad920678be4 100644 (file)
@@ -84,6 +84,8 @@ rspamd_mime_header_check_special (struct rspamd_task *task,
                p = rh->decoded;
                len = rspamd_strip_smtp_comments_inplace(rh->decoded, strlen(p));
                rh->decoded[len] = '\0'; /* Zero terminate after stripping */
+               /* Strip surrounding spaces */
+               rh->decoded = g_strstrip (rh->decoded);
                end = p + len;
 
                if (*p == '<') {