[Dovecot] Pop3 migration (was Status of commercial support?)
Odhiambo WASHINGTON writes:
| Courier 4 POP migration to dovecot.
This should be very easy, I think. Once you know the uidl format used by Courier 4 POP.
The migration is Courier 4 to Dovecot using Maildir format. I used some scripts I found on the net and adapted them. I got everything to come over (ie imap subscriptions), except POP3 UIDs.
My Courier POP3-uid files look like: /2 19 1164413643 <message file name>,S=28985:2,S 29648 10:1164413643 <message file name>,S=5913:2,S 6042 11:1164413643 <message file name>,S=5121:2, 5236 12:1164413643 <message file name>,S=5257:2, 5373 13:1164413643 <message file name>,S=5106:2, 5215 14:1164413643 <message file name>,S=5618:2, 5745 15:1164413643 <message file name>,S=30619:2, 31353 16:1164413643 <message file name>,S=34785:2, 35609 17:1164413643 <message file name>,S=6695:2, 6852 18:1164413643
My pop3_uidl_format is
pop3_uidl_format = %08Xu%08Xv
Looking at what Dovecot generates on a brand new pop account the files look like: 1 1164413643 29 10 <message file name> 11 <message file name> 12 <message file name> 13 <message file name> ... and more with the same format...
So I write an AWK script which creates the proper first line and gets for each line the message ID and message file name.
Yet after I do the conversion and run a pop3 client against the migrated pop account, old mails are re-downloaded.
On Thu, 2006-11-30 at 19:48 -0500, Francisco Reyes wrote:
<message file name>,S=28985:2,S 29648 10:1164413643
I guess Courier shows the UIDLs as "10:1164413643" then?
My pop3_uidl_format is
pop3_uidl_format = %08Xu%08Xv
In that case use %u:%v format.
If that doesn't work, check what Courier's UIDLs look like and how they're different from Dovecot's.
Timo Sirainen writes:
On Thu, 2006-11-30 at 19:48 -0500, Francisco Reyes wrote:
<message file name>,S=28985:2,S 29648 10:1164413643
I guess Courier shows the UIDLs as "10:1164413643" then?
It seems that way, but on my script I only converted the '10' over.
My pop3_uidl_format is
pop3_uidl_format = %08Xu%08Xv
In that case use %u:%v format.
If that doesn't work, check what Courier's UIDLs look like and how they're different from Dovecot's.
I will try %u:%v and report back.
participants (2)
-
Francisco Reyes
-
Timo Sirainen