Hello Jan,

On dimanche 27 avril 2014 16:56:18, Jan Kundrát wrote:
On Sunday, 27 April 2014 16:34:30 CEST, George P. wrote:
16:24:17.421 >>> y11 APPEND Sent (\Seen) "27-Apr-2014 16:24:17 +0200"
{365}
16:24:17.453 <<< * OK [TRYCREATE] Must create mailbox before append
16:24:17.453  Warning: unhandled untagged OK with a response code

Thanks. This is a combination of a bug in Trojita (we try to save mail into a non-existing mailbox) and a nasty bug in the IMAP server (a synchronizing literal is not properly aborted by sending a tagged response).

In baseline IMAP, clients have to "ask" the server for permission before they send large chunks of data (in this case, the content of the outgoing mail). A server is supposed to ackowledge its willingness to accept these data by a command continuation request, or deny it by sending out a tagged NO or a tagged BAD. In this case, the server should have said something like this:

        y11 NO [TRYCREATE] Must create mailbox before append

What happens in this case is that Trojita gets stuck waiting for either this tagged NO or BAD, or for a command continuation request ("+ go ahead, send us the data"). It is the server's fault that it does not send this response as a tagged one. Even if Trojita recognized this untagged OK [TRYCREATE] (which is in itself a bit hard because these command could theoretically be pipelined in parallel) and detected "ah, OK, this command will fail", the server still must respond to our command with a tagged response. Right now the server believes that the command was handled, while Trojita gets stuck waiting for something which is not going to come.

OK, got it; thank you very, very much for your the detailed explanation!

You can "fix" this by creating a mailbox names "Sent", or changing Trojita's settings so that it uses another mailbox for saving mail (or even unticking that checkbox for saving outgoing stuff in the first place).

Do you know what IMAP server implementation is that?

No, I don't. It's the "stock" IMAP server offered by my ISP. I tried using the "IMAP Server Information" menu item but it says that the server has not provided information about its software version :( It only lists the supported capabilities.

Thanks again for your help! Trojitá rocks :-)

Best,
George

Reply via email to