[wp-trac] Re: [WordPress Trac] #3717: wp_mail does not correctly
decode all MIME emails
WordPress Trac
wp-trac at lists.automattic.com
Thu Feb 1 13:10:34 GMT 2007
#3717: wp_mail does not correctly decode all MIME emails
--------------------------+-------------------------------------------------
Reporter: welcomb | Owner: anonymous
Type: defect | Status: new
Priority: low | Milestone: 2.2
Component: General | Version: 2.1
Severity: normal | Resolution:
Keywords: wp-mail MIME |
--------------------------+-------------------------------------------------
Changes (by welcomb):
* keywords: wp_mail MIME => wp-mail MIME
Comment:
Emails with content type other than multipart/alternative does not get
parsed properly by wp-mail.php.
If you examine the code (line 43), it only handles "multipart/alternative"
explictly, and never gets the boundary string properly.
Also, it assumes that the text/plain section is the first message section
(line 109) but it might not necessary be true.
As such, with emails encoded in other multipart formats, e.g.
multipart/mixed, wordpress will dump the undecoded content of the mail
into the blog post.
I would suggest incorpration of a MIME decoding library to properly handle
MIME decoding. What I did was write a quick hack for it.
--
Ticket URL: <http://trac.wordpress.org/ticket/3717#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list