aboutsummaryrefslogtreecommitdiffstats
path: root/src/message.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-03-09 15:49:32 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-03-09 15:49:32 +0300
commit8cc93b54959dc754b70698a2b397b3406dd7928e (patch)
treee81f07f120011162cc5fd89c76e9aa4a332d2c5a /src/message.c
parentc9af649b3316857e77ec3509ca93c4a4ff37f477 (diff)
downloadrspamd-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.c4
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);