[Dovecot] errors in dovecot-uidlist

Erland Nylend
Mon, 04 Jun 2007 10:47:10 -0000

We have migrated a mailsystem to postfix/dovecot, using the courier
migrate script, and we have run into a problem with dovecot-uidlist.

The messages are not listed in the correct order .. This is an
example dovecot-uidlist -file:

1 1177585200 49
22 1179084774.P7191Q0M321163.webmail1,S=8245:2,S
24 1179377823.P15932Q0M835219.smtp1,S=3462:2,S
25 1179668346.P23942Q0M941365.webmail1,S=4820357:2,S
31 1179864561.P22903Q0M433768.smtp2,S=3306:2,S
34 1180344355.P25491Q0M17232.smtp2,S=5111:2,S
35 1180454170.P14932Q0M841649.smtp2,S=2024:2,
36 1168867750.H82058P20971.smtp1:2,SR
37 1170339716.H537368P4032.smtp1:2,S
38 1171291025.H352867P8785.smtp2:2,SR
39 1171357049.H141820P2105.smtp1:2,SR
40 1171460195.H933928P14324.smtp1:2,SR
41 1171616121.H812220P27503.smtp2:2,SR
42 1171872919.H950768P16201.smtp1:2,S
43 1173694618.H330094P23347.smtp1:2,S
44 1175238705.H589518P693.smtp1:2,SR
45 1176800600.H716261P10514.smtp1:2,SR
46 1177615732.H355340P10418.webmail1:2,SR
47 1180471524.P30985Q0M109430.smtp2,S=16621
48 1180597849.P8169Q0M990486.smtp1,S=33326

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.


--
Erland Nylend