When CRLF encoding, "empty" (after stripping trailing whitespace

2002-07-16  Jeffrey Stedfast  <fejj@ximian.com>

	* 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
This commit is contained in:
Jeffrey Stedfast
2002-07-16 22:11:19 +00:00
committed by Jeffrey Stedfast
parent be83568f19
commit 06a5ca7188
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2002-07-16 Jeffrey Stedfast <fejj@ximian.com>
* 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 <peterw@ximian.com>
* providers/imap/camel-imap-folder.c (imap_sync_online): Clean

View File

@ -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;