[Dovecot] Out of Quota Causing "BYE Too many invalid IMAP commands."

Timo Sirainen tss at iki.fi
Tue May 30 15:28:05 EEST 2006


On Tue, 2006-05-30 at 12:13 +0000, Timothy White wrote:
> On 5/30/06, Timo Sirainen <tss at iki.fi> wrote:
> > On Tue, 2006-05-30 at 11:20 +0000, Timothy White wrote:
> > > This is what I get when I try and save a message that is larger than
> > > the size left
> > >
> > > May 30 19:36:36 mafeking dovecot: IMAP(joeblogs): Disconnected: Too
> > > many invalid IMAP commands.
> >
> > I think this means that Squirrelmail just sent the message anyway even
> > after Dovecot replied to APPEND command with "NO Quota exceeded". So I'd
> > say this is a Squirrelmail bug. If Squirrelmail insists on sending the
> > message anyway, it should use LITERAL+ extension and this won't be a
> > problem.
> 
> Not fully understanding the IMAP protocole. How should the LITERAL+
> extension help? If the APPEND is going to exceed quota, then how can
> SM still send the message? (Save as Draft)?

A working APPEND goes like this:

C: 1 APPEND "Drafts" {1000}
S: + OK
C: <sends 1000 bytes of message>
S: 1 OK Append completed.

In out-of-quota situations Squirrelmail probably does this:

C: 1 APPEND "Drafts" {1000}
S: 1 NO Quota exceeded
C: <sends 1000 bytes of message anyway>

With literal+ this happens:

C: 1 APPEND "Drafts" {1000+}
C: <sends 1000 bytes of message>
S: 1 NO Quota exceeded.

So the literal+ allows client to send the data without actually waiting
to see if server replies with "+" or "NO".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20060530/6e6b1f1a/attachment.pgp


More information about the dovecot mailing list