aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-07-09 18:46:00 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-07-09 18:46:00 +0200
commit958ad4e9f634d71f5659b179c909449a6915fc51 (patch)
treebdc7db946f46e6fcfc4715ea0a325cb825fde691
parentb0d61b82750f7466349e34e8c1831664e701a460 (diff)
downloadmblaze-958ad4e9f634d71f5659b179c909449a6915fc51.tar.gz
mmime: disregard line length restriction for message/rfc822 attachments
Many webmail client's don't like qp-encoded message/rfc822 attachments.
-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 &&