Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.6

Bug #20997 Improperly Parsing from Header
Submitted: 2015-12-13 17:56 UTC
From: postletariat Assigned:
Status: Verified Package: Mail_mimeDecode (version 1.5.5)
PHP Version: 5.5.30 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2015-12-13 17:56 UTC] postletariat (Anthony Mallgren)
Description: ------------ It seems as though when I attempt to decode mail from GMail, the from header is not becoming properly parsed. Test script: --------------- $decoder = new Mail_mimeDecode(stream_get_contents(STDIN)); $structure = $decoder->decode($params); echo json_encode($structure); Expected result: ---------------- I would expect something such as the following (excerpt, presented in JSON): {"headers":{"from": "emailaddress@gmail.com sun dec 13 10:46:49 2015"}} Actual result: -------------- Instead, I get something like the following (excerpt, presented in JSON): {"headers":{"from emailaddress@gmail.com sun dec 13 10":"46:49 2015"}}

Comments

 [2015-12-21 07:11 UTC] alan_k (Alan Knowles)
-Status: Open +Status: Verified
Needs patch.