diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-02-17 21:34:53 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-02-17 21:34:53 +0000 |
commit | 9c933b1803ae7a2665a5b12ddda06f3126cb870b (patch) | |
tree | c6527d15a16b15acd007f3fcf9deb002aaab10fb | |
parent | b3e1ff9e769e62977a3876de339a7319f2b27a4b (diff) | |
download | rspamd-9c933b1803ae7a2665a5b12ddda06f3126cb870b.tar.gz rspamd-9c933b1803ae7a2665a5b12ddda06f3126cb870b.zip |
[Minor] Strip message id from enclosing spaces
Issue: #4081
-rw-r--r-- | src/libmime/mime_headers.c | 2 |
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 == '<') { |