aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-02-28 09:09:05 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-02-28 09:09:05 +0800
commit7ac88d86319e2ef5b43ad7413f759bd1423ecd21 (patch)
treef2360977bdfc7ade0dc22623598ff68d86e6e938 /camel/camel-mime-utils.c
parent1eedef0b8672eed0b8f5bf7bf55b3ec93e4b5795 (diff)
downloadgsoc2013-evolution-7ac88d86319e2ef5b43ad7413f759bd1423ecd21.tar
gsoc2013-evolution-7ac88d86319e2ef5b43ad7413f759bd1423ecd21.tar.gz
gsoc2013-evolution-7ac88d86319e2ef5b43ad7413f759bd1423ecd21.tar.bz2
gsoc2013-evolution-7ac88d86319e2ef5b43ad7413f759bd1423ecd21.tar.lz
gsoc2013-evolution-7ac88d86319e2ef5b43ad7413f759bd1423ecd21.tar.xz
gsoc2013-evolution-7ac88d86319e2ef5b43ad7413f759bd1423ecd21.tar.zst
gsoc2013-evolution-7ac88d86319e2ef5b43ad7413f759bd1423ecd21.zip
Use the FOLD_SIZE as a recommended folding size, but add a new
2002-02-28 Not Zed <NotZed@Ximian.com> * camel-mime-utils.c (header_fold): Use the FOLD_SIZE as a recommended folding size, but add a new FOLD_MAX_SIZE (=998, the smtp max line size) as the hard limit for any output. svn path=/trunk/; revision=15866
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 257c0e323e..b908f86059 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -4080,11 +4080,11 @@ header_fold(const char *in, size_t headerlen)
g_string_append(out, "\n\t");
outlen = 1;
/* check for very long words, just cut them up */
- while (outlen+len > CAMEL_FOLD_SIZE) {
- for (i=0;i<CAMEL_FOLD_SIZE-outlen;i++)
+ while (outlen+len > CAMEL_FOLD_MAX_SIZE) {
+ for (i=0;i<CAMEL_FOLD_MAX_SIZE-outlen;i++)
g_string_append_c(out, inptr[i]);
- inptr += CAMEL_FOLD_SIZE-outlen;
- len -= CAMEL_FOLD_SIZE-outlen;
+ inptr += CAMEL_FOLD_MAX_SIZE-outlen;
+ len -= CAMEL_FOLD_MAX_SIZE-outlen;
g_string_append(out, "\n\t");
outlen = 1;
}