I recently installed PHP 5.1 to my server. After that, when sending an email via SquirrelMail 1.4.5, I'd get the following:
ERROR: Bad or malformed request.
Server responded: Missing message to APPEND
The email would actually be sent, despite this, but it wouldn't be stored in the Sent folder.
Some Googling turned up a discussion on the issue, along with the following solution:
In /functions/imap_general.php line 891 change
fputs ($imap_stream, sqimap_session_id() . " APPEND
\"$sent_folder\" (\\Seen) \{$length}\r\n");
to
fputs ($imap_stream, sqimap_session_id() . " APPEND
\"$sent_folder\" (\\Seen) {" . $length .
"}\r\n");
PHP 5.1 breaks SquirrelMail send function.
Moderator: jasonb