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/camel-mime-filter-canon.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'camel/camel-mime-filter-canon.c') 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