about summary refs log tree commit diff
path: root/mmime.c
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-04-30 18:34:37 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-04-30 18:37:06 +0200
commit67c0a3b17c176679014f132453757e15c7f435f2 (patch)
treee2911453f33dc31f83d30799ef4eec6b2b55e831 /mmime.c
parentf53e8dc6721d55704fd7d6bd4bd238e42551deff (diff)
downloadmblaze-67c0a3b17c176679014f132453757e15c7f435f2.tar.gz
mblaze-67c0a3b17c176679014f132453757e15c7f435f2.tar.xz
mblaze-67c0a3b17c176679014f132453757e15c7f435f2.zip
mmime: print_header: only force qp-encoding for overlong lines
Lines SHOULD not be longer than 78 chars, and we try to fold like that,
but we only enforce qp-encoding for 7-bit safe lines if they would be
longer than 998, which they MUST not be.
Diffstat (limited to 'mmime.c')
-rw-r--r--mmime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mmime.c b/mmime.c
index 1112a51..2d474cb 100644
--- a/mmime.c
+++ b/mmime.c
@@ -250,7 +250,7 @@ print_header(char *line) {
 		}
 
 		if (!highbit) {
-			if (e-s >= 78)
+			if (e-s >= 998)
 				goto force_qp;
 			if (e-s >= 78 - linelen) {
 				// wrap in advance before long word