aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-02-01 08:29:35 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-02-01 08:29:35 +0800
commitfd49db2029c5930f91476623a8afb359789a9515 (patch)
tree3a50ceb28aaa8a22fe0f3f8bb6a24fb567945ec5
parent82de3a557cf3237c4e3244dc565ccee70a146f56 (diff)
downloadgsoc2013-evolution-fd49db2029c5930f91476623a8afb359789a9515.tar
gsoc2013-evolution-fd49db2029c5930f91476623a8afb359789a9515.tar.gz
gsoc2013-evolution-fd49db2029c5930f91476623a8afb359789a9515.tar.bz2
gsoc2013-evolution-fd49db2029c5930f91476623a8afb359789a9515.tar.lz
gsoc2013-evolution-fd49db2029c5930f91476623a8afb359789a9515.tar.xz
gsoc2013-evolution-fd49db2029c5930f91476623a8afb359789a9515.tar.zst
gsoc2013-evolution-fd49db2029c5930f91476623a8afb359789a9515.zip
If we are folding, drop the space at the end of the line.
2001-02-01 Not Zed <NotZed@Ximian.com> * camel-mime-utils.c (header_fold): If we are folding, drop the space at the end of the line. svn path=/trunk/; revision=7928
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-mime-utils.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 9e0455b079..e9e6b4dbd6 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-01 Not Zed <NotZed@Ximian.com>
+
+ * camel-mime-utils.c (header_fold): If we are folding, drop the
+ space at the end of the line.
+
2001-01-30 Not Zed <NotZed@Ximian.com>
* camel-remote-store.c (timeout_cb): Remvoe the stream locking
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index b7a14992d8..0b77dbe9c8 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -3153,6 +3153,9 @@ header_fold(const char *in, int headerlen)
d(printf("next word '%.*s'\n", len, inptr));
if (outlen + len > CAMEL_FOLD_SIZE) {
d(printf("outlen = %d wordlen = %d\n", outlen, len));
+ /* strip trailing space */
+ if (out->len > 0 && out->str[out->len-1] == ' ')
+ g_string_truncate(out, out->len-1);
g_string_append(out, "\n\t");
outlen = 1;
/* check for very long words, just cut them up */