Open GoogleCodeExporter opened 9 years ago
I found that emails sent by outlook had a number of issues with some tags [they
had an extra newline].
Once I ran the following on the entire email string, everythingthings worked as
expected (multipart messages, attachments, usw)
$data = preg_replace ('/;\s*$\s*(boundary|charset|filename|name)\s*=\s*"([^"]+)"/ims',';\1="\2"', $data);
[NOTE: this regex expects the values to be quoted]
For example,
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_001C_01CC9ED8.68F2D110"
...
Content-Type: text/plain;
charset="us-ascii"
is changed to:
Content-Type:
multipart/alternative;boundary="----=_NextPart_000_001C_01CC9ED8.68F2D110"
...
Content-Type: text/plain;charset="us-ascii"
John GIllespie
Original comment by psm...@gmail.com
on 23 Nov 2011 at 7:27
Original issue reported on code.google.com by
kaista...@gmail.com
on 31 Aug 2011 at 3:41