summaryrefslogtreecommitdiffstats
path: root/sendlib.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-08-19 06:34:09 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-08-19 06:34:09 +0000
commitcdacf77ffc7bf11cf7007f70c430564617bc6dae (patch)
treeeb998005f631b9fd107655f73ea86559fffc1110 /sendlib.c
parent03a287290143a90b08f7693dee92e7aaa18ebe4a (diff)
Force quotes around the boundary parameter. Another courtesy
towards Outlook.
Diffstat (limited to 'sendlib.c')
-rw-r--r--sendlib.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sendlib.c b/sendlib.c
index 7205f0ed..e87fb051 100644
--- a/sendlib.c
+++ b/sendlib.c
@@ -374,6 +374,14 @@ int mutt_write_mime_header (BODY *a, FILE *f)
encode = rfc2231_encode (tmp, sizeof (tmp), (unsigned char *) p->value);
rfc822_cat (buffer, sizeof (buffer), tmp, MimeSpecials);
+ /* Dirty hack to make messages readable by Outlook Express
+ * for the Mac: force quotes around the boundary parameter
+ * even when they aren't needed.
+ */
+
+ if (!strcasecmp (p->attribute, "boundary") && !strcmp (buffer, tmp))
+ snprintf (buffer, sizeof (buffer), "\"%s\"", tmp);
+
tmplen = mutt_strlen (buffer) + mutt_strlen (p->attribute) + 1;
if (len + tmplen + 2 > 76)