[Dovecot] Fetch order

Timo Sirainen tss at iki.fi
Fri Nov 7 15:15:45 EET 2008

On Fri, 2008-11-07 at 15:05 +0200, Warren Baker wrote:
> 2008/11/7 Timo Sirainen <tss at iki.fi>:
> > On Fri, 2008-11-07 at 14:37 +0200, Warren Baker wrote:
> >> But if we fetch the latest 25 messages, Dovecot will fetch the lowest
> >> UID in the list first, so from the example above it would fetch UID
> >> 171,172,173 and so on. Courier on the other hand would start the fetch
> >> on UID 195,194,193 and so on.
> >>
> >> We have an internal developed webmail application that has been
> >> affected by this change, so I am just wondering whether there is a
> >> interim fix while we fix our webmail application to cater for this.
> >
> > Not really. I'm sure you'll have your webmail code fixed before you
> > could have changed Dovecot to return results in different order..
> Yes of course - was just wondering whether there might be some hidden
> config option.

No. Dovecot is optimized to return fetch results in incremental order.
It's not easy to change it.

> You are absolutely correct though that webmail would be
> fixed quicker :)
> Are there any guidelines for IMAP servers indicating what the fetch
> order should be?

Untagged results may be returned in any order the server wants, as long
as all of them are returned before the tagged OK.

Actually with Dovecot v1.1+ if you send multiple FETCH commands at the
same time you might get the replies in different order than you expect.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20081107/826c7762/attachment-0001.bin 

More information about the dovecot mailing list