diff options
author | José Fonseca <jrfonseca@users.sourceforge.net> | 2007-08-15 11:04:56 +0000 |
---|---|---|
committer | José Fonseca <jrfonseca@users.sourceforge.net> | 2007-08-15 11:04:56 +0000 |
commit | 00046a721824c414a446be3ee7e5ad03a23c1ded (patch) | |
tree | 3c489ee7ff58dfb5dc964364fde2bb92f3f56ad1 | |
parent | 2f92f79452cc6fd9f934567c03dd52ba85f8fafd (diff) |
Handle CR-LF newline endings when parsing the headers.
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | message.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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. @@ -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; } } |