Hi all,
done a clean install of Qmail using qmailrocks debian install. I had to use src to install Courier-imap/imaps
Everything works great apart from when I send an email I get the following error but the email is still sent, just has problems moving it to the .Sent folder

ERROR: Could not append message to INBOX.Sent.
Server responded: Error in IMAP command received by server.

If I print_r ($tmp), within imap_general.php:893 I get:
A003 NO Error in IMAP command received by server.

So I looked up the error code A003 and found the following:
http://www.squirrelmail.org/wiki/ComposeErrorOnSend

Noted that the error was a malformed IMAP command sent by sqrm. Changed as the direction:
imap_general.php:891
< fputs ($imap_stream, sqimap_session_id() . " APPEND \"$sent_folder\" (\\Seen) \{$length}\r\n");
>
fputs ($imap_stream, sqimap_session_id() . " APPEND \"$sent_folder\" (\\Seen) {" . $length . "}\r\n");

and everything was fine.

TODO:
I think dev team should include the $tmp var output if an error happens in this code block. This will help basic users decode the error.

Giz


Reply via email to