From 00046a721824c414a446be3ee7e5ad03a23c1ded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Fonseca?= Date: Wed, 15 Aug 2007 11:04:56 +0000 Subject: Handle CR-LF newline endings when parsing the headers. --- NEWS | 2 ++ message.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 54d7de2..9e2b321 100644 --- a/NEWS +++ b/NEWS @@ -3,6 +3,8 @@ News * Development: + * Handle CR-LF newline endings when parsing the headers. + * Wrapper script for off-line mail delivery (Phil Sutter). * Document how to get CA certificates. diff --git a/message.c b/message.c index a52df85..b258c46 100644 --- a/message.c +++ b/message.c @@ -333,7 +333,7 @@ unsigned message_parse_headers(message_t *message) start = stop; - if(line[0] == '\n') + if(line[0] == '\n' || line[0] == '\r') return count; } } -- cgit v1.2.3-2-g168b