PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Networking » Net_IMAP » Bug #7468

cmdAppend() adding \r\n to top of email msg

Details

Submitted2006-04-24 05:17 UTC
Frombrad at ibiscode dot com
Assignedhudeldudel
StatusClosed
PackageNet_IMAP
PHP VersionIrrelevant
OSlinux
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?