about summary refs log tree commit diff
path: root/mmime.c
diff options
context:
space:
mode:
Diffstat (limited to 'mmime.c')
-rw-r--r--mmime.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mmime.c b/mmime.c
index 5d667b9..bc6e3bc 100644
--- a/mmime.c
+++ b/mmime.c
@@ -219,6 +219,9 @@ gen_file(char *file, char *ct)
 			bithigh++;
 	}
 
+	if (strcmp(ct, "message/rfc822") == 0 && maxlinelen < 997)
+		maxlinelen = 0;
+
 	gen_attachment(filename, cd);
 
 	if (bitlow == 0 && bithigh == 0 &&