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

Bug #19445 Message body is empty with file attached
Submitted: 2012-05-31 01:06 UTC
From: cliaustin Assigned:
Status: Open Package: Mail_IMAPv2 (version 0.2.1)
PHP Version: 5.2.9 OS: WindowsXP
Roadmaps: (Not assigned)    
Subscription  


 [2012-05-31 01:06 UTC] cliaustin (Chunlin Li)
Description: ------------ Retrieve message body (getBody) from an email with file attachment. Got blank message body even with text in the body. The same email without attachment will display message body properly. Test script: --------------- We have used the following workaround temporarily, but would like to have a better fix from you. Here is the temporary fix: at line 1108, replace current code: $this->_scanMultipart($mid, $pid, $i, $get_mime, 'get', 'multipart', 1); by the following workaround: ($pid=='1' ? $this->_scanMultipart($mid, $pid, $i, $get_mime, 'get', 'all', 1) : $this->_scanMultipart($mid, $pid, $i, $get_mime, 'get', 'multipart', 1));

Comments