diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-03-09 15:49:32 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-03-09 15:49:32 +0300 |
commit | 8cc93b54959dc754b70698a2b397b3406dd7928e (patch) | |
tree | e81f07f120011162cc5fd89c76e9aa4a332d2c5a /src/message.c | |
parent | c9af649b3316857e77ec3509ca93c4a4ff37f477 (diff) | |
download | rspamd-8cc93b54959dc754b70698a2b397b3406dd7928e.tar.gz rspamd-8cc93b54959dc754b70698a2b397b3406dd7928e.zip |
Fix gmime24 compatibility.
Fix adding extra space to raw headers.
Reported by: Victor Ustugov
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/message.c b/src/message.c index b4ddde839..4f4627351 100644 --- a/src/message.c +++ b/src/message.c @@ -588,6 +588,10 @@ process_raw_headers (struct worker_task *task) } } } + /* Strip last space that can be added by \r\n parsing */ + if (*(tp - 1) == ' ') { + tp --; + } *tp = '\0'; new->value = tmp; task->raw_headers_list = g_list_prepend (task->raw_headers_list, new); |