Timo Sirainen wrote:
Courier appears to keep the UID numbers for messages that it uses for the POP3 server separate from the UID numbers for the IMAP server. Courier has a file: courierpop3dsizelist which has a line for every message, like:
1129610881.6075832619.blade4:2,S 2361 1478:1065670602 1129727025.1168007000.blade1:2,S 14718 1479:1065670602 1130005953.3295720403.blade5:2,S 1554 1481:1065670602 1130108068.0849623942.blade5:2,S 8246 1482:1065670602
Oh. For some reason I had thought it used the same IMAP uidlist file. Perhaps earlier versions did?
I have the same issue, and a workaround (courier 4.0.2 vs dovecot-1.0.rc2).
In the user's Maildir/ directory, I run the following commands:
rm dovecot* head -2 courierpop3dsizelist | tail -1 | awk '{print(1,$3)}' | sed 's/:/ /' | awk '{print($1,$3,$2)}' > dovecot-uidlist
And in dovecot.conf I have the following:
protocol pop3 { pop3_uidl_format = UID%u-%v }
This has been tested and works for at least three mailboxes here with
3000 mails (why these people still use pop3 is beyond me).
By the way, another server running courier 3.0.7 seems to simply use the filename.
Robin Elfrink