PHP 5.1 breaks SquirrelMail send function.

Technical Q&A involving operating systems, networking, software, and hardware issues.

Moderator: jasonb

Post Reply
User avatar
jasonb
Site Administrator
Posts: 105
Joined: Tue Apr 22, 2003 1:54 pm
Location: Toronto, Canada
Contact:

PHP 5.1 breaks SquirrelMail send function.

Post by jasonb »

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");
Post Reply