Control: reassign -1 evolution-data-server 3.16.3-1
Control: tags -1 + patch

On Mon, 2015-06-22 at 21:31 +0200, Arthur de Jong wrote:
> which means the first line ends up as 1003 characters. While this
> technically may be a bug in that software it is probably much easier 
> to work around this in evolution than it is to fix all the deployed 
> mail systems out there.

Attached is a quilt patch that seems to work for me (also see face
header in this mail). The patch is for the evolution-data-server
package.

-- 
-- arthur - adej...@debian.org - http://people.debian.org/~adejong --
Description: Protect header wrapping against reflowing
 This changes the line wrapping of headers to ensure that the first line 
 of rewrapped headers do not just consist of the header name but instead 
 contains the first bit of the value.
 .
 This ensures that programs that rewrap or reflow headers (such as 
 mailman) do not accidentally result in headers that are longer than 
 998 characters.
Author: Arthur de Jong <adej...@debian.org>
Bug-Debian: https://bugs.debian.org/789616

--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -5236,12 +5236,9 @@ camel_header_fold (const gchar *in,
 				g_string_truncate (out, out->len - 1);
 				g_string_append_c (out, '\n');
 				g_string_append_c (out, spc);
-			} else {
-				g_string_append (out, "\n\t");
+				outlen = 1;
 			}
 
-			outlen = 1;
-
 			/* check for very long words, just cut them up */
 			while (outlen + len > CAMEL_FOLD_MAX_SIZE) {
 				tmplen = CAMEL_FOLD_MAX_SIZE - outlen;

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to