On Fri, Mar 16, 2012 at 16:24, Timo Sirainen <tss@iki.fi> wrote:
I have a situation where I need to migrate e-mails from Outlook 2011 (Mac) to Apple Mail. Having looked at all options, I have resorted to the, perhaps, most difficult way: Create folders on the IMAP server, copy e-mails into them from Outlook, connect Apple Mail and do the reverse. However, I have hit a wall.
I am running Dovecot 2.1.2 on FreeBSD, with mdbox storage.
In my first attempt, I have 1792 messages in the "Sent Items" folder for Outlook. I have tried (3 times) to copy the messages to the IMAP/Sent Items folder, but the process dies at some point. When that happens, Outlook
On Fri, 2012-03-16 at 13:51 +0300, Odhiambo Washington wrote: pops
a screen saying "IMAP session state is inconsistent, please relogin". .. Mar 16 13:33:23 jaribu dovecot: imap(wash@kictanet.or.ke): Error: Corrupted dbox file /var/spool/virtual/kictanet.or.ke/wash/mdbox/storage/m.4(around offset=894): msg header has bad magic value
Well, this isn't good. The mdbox was empty when you first started copying the mails? This is a normal local FreeBSD filesystem (not NFS or something else weird)?
Yes, it was pretty much empty..actually, I just configured the Dovecot instance yesterday evening and only tested for "correct operation" by sending a test mail to myself and login to POP3/IMAP. Pretty much pristine.
And yes, if is FreeBSD ufs. [wash@jaribu ~]$ mount /dev/label/rootfs0 on / (ufs, local, noatime, journaled soft-updates) devfs on /dev (devfs, local, multilabel) procfs on /proc (procfs, local) linprocfs on /compat/linux/proc (linprocfs, local) /dev/ada1s1a on /disk2 (ufs, local, noatime, soft-updates)
What happens if you now run:
doveadm force-resync -u wash@kictanet.or.ke INBOX
[root@jaribu] /usr/home/wash# /opt/dovecot2.1/bin/doveadm force-resync -u wash@kictanet.or.ke INBOX doveadm(wash@kictanet.or.ke): Warning: mdbox /var/spool/virtual/ kictanet.or.ke/wash/mdbox/storage: rebuilding indexes
Does it show any errors? If not, and if you try to copy the mails again, does it still fail?
Unfortunately, the user has taken the MacBook now so I am unable to test copying again.
It's interesting if you can reproduce this. I wonder if it's because of FreeBSD or if it's related to single instance storage.
I should be able to test this again at some point next week, but just to add, I changed the storage to Maildir and I was able to copy all the mails to the IMAP folder without any issue so I think it's something with SIS.
PS: I wish I could test this with Outlook running on Windows, but I guess that introduces a completely different environment than what I had on the MacBook, right?
-- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223
I can't hear you -- I'm using the scrambler. Please consider the environment before printing this email.