From 7ac88d86319e2ef5b43ad7413f759bd1423ecd21 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 28 Feb 2002 01:09:05 +0000 Subject: Use the FOLD_SIZE as a recommended folding size, but add a new 2002-02-28 Not Zed * 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 --- camel/camel-mime-utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'camel/camel-mime-utils.c') 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_MAX_SIZE) { + for (i=0;i