aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-07-17 06:11:19 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-07-17 06:11:19 +0800
commit06a5ca7188e6eae5f953bc0db0746e7d3f834ed4 (patch)
treed36921a6c2d321049497862d24fb4c49d51806dc /camel
parentbe83568f19b08b3290a4e6b0c0e258a23d4ed360 (diff)
downloadgsoc2013-evolution-06a5ca7188e6eae5f953bc0db0746e7d3f834ed4.tar.gz
gsoc2013-evolution-06a5ca7188e6eae5f953bc0db0746e7d3f834ed4.tar.zst
gsoc2013-evolution-06a5ca7188e6eae5f953bc0db0746e7d3f834ed4.zip
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
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog6
-rw-r--r--camel/camel-mime-filter-canon.c4
2 files changed, 10 insertions, 0 deletions
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 <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
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;