Menu

#2594 SquirrelMail fails on "untagged responses" to APPEND command

open
nobody
None
5
2008-07-10
2008-07-10
Micha Lenk
No

SquirrelMail 1.4.15 does not wait properly for "untagged responses" as described in RFC 3501 (IMAP 4rev1) chapter 2.2.2 in response to an APPEND command. This causes under certain circumstances SquirrelMail to display an error message: "FEHLER: Konnte die E-Mail nicht anhängen an INBOX.Sent. Server antwortete: RED)" (untranslated: "ERROR: Could not append message to INBOX.Sent. Server responded: RED)")

This has been reported by other user too:
http://osdir.com/ml/mail.imap.courier.server/2006-11/msg00005.html

With the help of a TCP stream dump I could track this down to the function sqimap_append_checkresponse() in functions/imap_general.php: In case the server sends an "untagged response" as described in RFC 3501 chapter 2.2.2 (i.e. a response that starts with "* ") SquirrelMail is unable to parse it.

The attached patch fixes the problem by a simple check for "untagged responses". A even better fix would wait explicitly for the response with the correct session id. But this patch at least doesn't make things worse. :-)

Regards
Micha

Discussion

  • Micha Lenk

    Micha Lenk - 2008-07-10

    Patch adding a simple check for untagged responses

     
  • Paul Lesniewski

    Paul Lesniewski - 2009-04-01

    I can't reproduce this. Can you please try SquirrelMail version 1.5.2, where there is a different solution for this and see if it works for you? Otherwise, please give more information about your Courier IMAP version and configuration, etc. -- ideally we need to be able to reproduce this. Your help is appreciated.

     

Log in to post a comment.