ZF-3081: [Zend_Mail_Protocol_Imap] Append message

Description

Hello,

I have found a bug in Imap protocol to append a message to a box. Excuse me for my english, and i hope you will understand what i mean.

Here is an example of a correct APPEND operation :


. APPEND user.pdupont {152}
+ go ahead
From:
To:
Subject: Les lapins d'Australie

Ne pas les confondre avec les kangourous.

. OK [APPENDUID 896443059 1408] Completed

But in "Zend_Mail_Protocol_Imap::append", it throw "requestAndResponse", which "_assumedNextLine" with '+ OK'. But it needs for APPEND '+ go ahead'. So to resume :

send 'APPEND '. $folder .' {'. strlen($message) .'}'; waiting for '+ go ahead' send $message

And of course, could the uid be return when we call $uid = $imap->appendMessage(...) ?

Thanks a lot, Vincent

Comments

Please evaluate and categorize/assign as necessary.

Thanks. We now don't check for the response text, only for '+ '

Updating for the 1.6.0 release.