aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/mime_headers.c
diff options
context:
space:
mode:
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 == '<') {