aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_headers.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2022-02-17 21:34:53 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2022-02-17 21:34:53 +0000
commit9c933b1803ae7a2665a5b12ddda06f3126cb870b (patch)
treec6527d15a16b15acd007f3fcf9deb002aaab10fb /src/libmime/mime_headers.c
parentb3e1ff9e769e62977a3876de339a7319f2b27a4b (diff)
downloadrspamd-9c933b1803ae7a2665a5b12ddda06f3126cb870b.tar.gz
rspamd-9c933b1803ae7a2665a5b12ddda06f3126cb870b.zip
[Minor] Strip message id from enclosing spaces
Issue: #4081
Diffstat (limited to 'src/libmime/mime_headers.c')
-rw-r--r--src/libmime/mime_headers.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmime/mime_headers.c b/src/libmime/mime_headers.c
index b819f0ec5..f4001d640 100644
--- a/src/libmime/mime_headers.c
+++ b/src/libmime/mime_headers.c
@@ -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 == '<') {