On Mon, 2007-06-04 at 12:47 +0200, Erland Nylend wrote:
As you can see, the unix timestamps are descending between uid 35 and uid 36 .. and this causes problems if we intend to make webmail access the messages through imap. (it expects to receive the messages sorted by when they were received)
Is there any way I can sort the list accourding to the unix timestamps, and still make it transparent to the pop3/imap clients?
I would prefer a solution that does not involve users downloading allready downloaded messages via pop3.
There's no easy way. The UID numbers were apparently converted from courierpop3dsizelist file. So either the UID numbers need to be lost, or the list isn't sorted. Dovecot doesn't yet support having separate UIDs for POP3 and IMAP.
One thing you could do is insert X-UIDL headers to the maildir files and set pop3_reuse_xuidl=yes, but that would change the file sizes and possibly break some things.
But IMAP supports sorting messages by received date (internaldate). Maybe your webmail can be configured to do that?