Home » Networking » Net_IMAP » Bug #7468
cmdAppend() adding \r\n to top of email msg
Details
| Submitted | 2006-04-24 05:17 UTC |
|---|---|
| From | brad at ibiscode dot com |
| Assigned | hudeldudel |
| Status | Closed |
| Package | Net_IMAP |
| PHP Version | Irrelevant |
| OS | linux |
| Roadmaps | (Not assigned) |
Comments
[2006-04-24 05:17 UTC] brad at ibiscode dot com
Description:
------------
cmdAppend() is adding a blank line (\r\n) to the very top of the email msg and therefore causing the headers to be missed upon requesting them later and also the last two chars of the saved msg are chopped.
This is caused because _putCMD() also appends \r\n to the end of the command, so we end up with two line feeds one of which ends up at the top of the appended email.
Test script:
---------------
// HERE IS THE ERROR
//$param=sprintf("%s %s%s{%s}\r\n",$mailbox_name,$flags_list,$time,$msg_size);
// Removing the \r\n from the pattern seems to fix the problem
$param=sprintf("%s %s%s{%s}",$mailbox_name,$flags_list,$time,$msg_size);
[2006-12-11 16:50 UTC] amistry at php dot net
Is this still a problem in the CVS version?