summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@users.sourceforge.net>2007-08-15 11:04:56 +0000
committerJosé Fonseca <jrfonseca@users.sourceforge.net>2007-08-15 11:04:56 +0000
commit00046a721824c414a446be3ee7e5ad03a23c1ded (patch)
tree3c489ee7ff58dfb5dc964364fde2bb92f3f56ad1
parent2f92f79452cc6fd9f934567c03dd52ba85f8fafd (diff)
Handle CR-LF newline endings when parsing the headers.
-rw-r--r--NEWS2
-rw-r--r--message.c2
2 files changed, 3 insertions, 1 deletions
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;
}
}