From 06a5ca7188e6eae5f953bc0db0746e7d3f834ed4 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 16 Jul 2002 22:11:19 +0000 Subject: When CRLF encoding, "empty" (after stripping trailing whitespace 2002-07-16 Jeffrey Stedfast * camel-mime-filter-canon.c (filter): When CRLF encoding, "empty" (after stripping trailing whitespace characters) lines need to end in CRLF also, not just lines with data in them. svn path=/trunk/; revision=17485 --- camel/ChangeLog | 6 ++++++ camel/camel-mime-filter-canon.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/camel/ChangeLog b/camel/ChangeLog index e932cd42d6..5cc9f9943e 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,9 @@ +2002-07-16 Jeffrey Stedfast + + * camel-mime-filter-canon.c (filter): When CRLF encoding, "empty" + (after stripping trailing whitespace characters) lines need to end + in CRLF also, not just lines with data in them. + 2002-07-16 Peter Williams * providers/imap/camel-imap-folder.c (imap_sync_online): Clean diff --git a/camel/camel-mime-filter-canon.c b/camel/camel-mime-filter-canon.c index 0fd48fb7b3..412fe89262 100644 --- a/camel/camel-mime-filter-canon.c +++ b/camel/camel-mime-filter-canon.c @@ -135,7 +135,11 @@ filter(CamelMimeFilter *f, char *in, size_t len, size_t prespace, char **out, si if (o[-1] == '\r') o--; } + } else if (flags & CAMEL_MIME_FILTER_CANON_CRLF) { + /* empty line */ + *o++ = '\r'; } + *o++ = c; start = inptr; starto = o; -- cgit v1.2.3