diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-08-19 06:34:09 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-08-19 06:34:09 +0000 |
commit | cdacf77ffc7bf11cf7007f70c430564617bc6dae (patch) | |
tree | eb998005f631b9fd107655f73ea86559fffc1110 /sendlib.c | |
parent | 03a287290143a90b08f7693dee92e7aaa18ebe4a (diff) |
Force quotes around the boundary parameter. Another courtesy
towards Outlook.
Diffstat (limited to 'sendlib.c')
-rw-r--r-- | sendlib.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) |