[Dovecot] Migration woes from tpop mbox to dovecot maildir
I was hoping some one might be able to offer me some advice on a little problem I have. I am looking to A. move from mbox to maildir B. looking to move from tpop to dovecot to bring both pop and imap under the same program. anyways the problem I am having is this tpop3d mbox uses MD5 sum of the mailbox headers in hex which is option %m in the uidl section but the problem is when dovecot convert plugin runs and makes in a maildir it fails to find the md5 of this because it is only used for mboxs. if I change this from %m to %Mf it downloads every message on the clients computer which is not desirable. I was thinking only options i have is to allow it to download all them mail and or write a script to convert it to maildir or another pop servers uidl. but i dont know much about how other pop servers generate there headers. so I was hoping maybe some one has done something similar to this or could offer some input. thanks
-Chris
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete this material from any computer.
In accordance with industry regulations, all messages are retained and are subject to monitoring.
This message has been scanned for viruses and dangerous content and is believed to be clean.
Securities offered through Cantella & Co., Inc., Member FINRA/SIPC. Home Office: 2 Oliver Street, 11th Floor, Boston, MA 02109 Telephone: (617)521-8630
Chris Richardson wrote:
I was hoping some one might be able to offer me some advice on a little problem I have. I am looking to A. move from mbox to maildir B. looking to move from tpop to dovecot to bring both pop and imap under the same program. anyways the problem I am having is this tpop3d mbox uses MD5 sum of the mailbox headers in hex which is option %m in the uidl section but the problem is when dovecot convert plugin runs and makes in a maildir it fails to find the md5 of this because it is only used for mboxs. if I change this from %m to %Mf it downloads every message on the clients computer which is not desirable. I was thinking only options i have is to allow it to download all them mail and or write a script to convert it to maildir or another pop servers uidl. but i dont know much about how other pop servers generate there headers. so I was hoping maybe some one has done something similar to this or could offer some input. thanks
-Chris
I have the very same problem. The only difference is that I have already migrated to dovecot and using mbox for both pop3 and imap. Am still looking for the good solution to migrate to Maildir without making my clients re-download all their mail (they won't get dups with imap, but downloading gigabytes of mail isn't good idea either. Timo suggested writing a script that would create dovecot-uidlist files for every mailbox with old-style (%m in your case) UIDs during migration and that makes perfect sense to me. However I'm really bad with programming and cat rely on my own script for such an important task.
P.S. not sure how dovecot handles pop3 UID's. In my case I need preserving UIDs in imap-to-imap (mbox-to-Maildir) migration.
FiL
On Friday 14 September 2007 16:27:28 FiL @ Kpoxa wrote:
I was hoping some one might be able to offer me some advice on a little problem I have. I am looking to A. move from mbox to maildir B.
I have the very same problem. The only difference is that I have already migrated to dovecot and using mbox for both pop3 and imap. Am still looking for the good solution to migrate to Maildir without making my clients re-download all their mail (they won't get dups with imap, but downloading gigabytes of mail isn't good idea either.
I have much the same problem, except that in my case I think my ignorance of dovecot is a major factor.
I have moved all my email (on my server) to ~/Maildir , with folders ~/Maildir/inbox/cur , etc. I'm using kmail under Fedora 7, and have a maildir Account on the server with the directory ~/Maildir specified in the kmail settings.
Should I actually have an IMAP (or rather IMAPS) Account on kmail on the server? [The kmail documentation on this point is not clear, at least to me.]
I can see my email with kmail on my server OK, but do not see it on my laptop, with an IMAPS account specified.
I had already changed mail_location in /etc/dovecot.conf on the server to read mail_location = maildir:~/Maildir and re-started dovecot (on the server).
I'm pretty sure I am doing something silly - any advice or suggestions gratefully received.
but cannot see it with IMAPS spec
--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
On 9/14/2007, Timothy Murphy (gayleard@eircom.net) wrote:
Should I actually have an IMAP (or rather IMAPS) Account on kmail on the server? [The kmail documentation on this point is not clear, at least to me.]
I can see my email with kmail on my server OK, but do not see it on my laptop, with an IMAPS account specified.
If I'm not mistaken, KMail can read maildirs directly (no IMAP server required).
So, to read these emails from an IMAP client that cannot read maildirs directly, you would need an IMAP server.
There may be issues with accessing your maildirs directly from KMail *and* an IMAP server at the same time, so you may want to set up KMail to use the IMAP server too if you do this.
Or - maybe it isn't a problem - I'm sure someone else will chime in...
--
Best regards,
Charles
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Friday 14 September 2007 20:13, Charles Marcus wrote:
On 9/14/2007, Timothy Murphy (gayleard@eircom.net) wrote:
Should I actually have an IMAP (or rather IMAPS) Account on kmail on the server? [The kmail documentation on this point is not clear, at least to me.]
I can see my email with kmail on my server OK, but do not see it on my laptop, with an IMAPS account specified.
If I'm not mistaken, KMail can read maildirs directly (no IMAP server required).
Although KMail uses Maildir as its default mailbox format, it doesn't follow the Maildir++ specification. Instead, folder names are encoded with UTF-8 (or even the current LC_CTYPE) and subfolders are stored in .<folder>.directory. The layouts are obviously not very compatible.
Magnus Holmgren holmgren@lysator.liu.se (No Cc of list mail needed, thanks) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFG64k5k7mRNn1h4+YRAmnDAKCdqPuWMdFvymYcLixycUz8MKjb+wCg8yn2 7eJq92UHZ8lN2wxf6p0c6iQ= =XyFN -----END PGP SIGNATURE-----
On Friday 14 September 2007 19:13:02 Charles Marcus wrote:
Should I actually have an IMAP (or rather IMAPS) Account on kmail on the server? [The kmail documentation on this point is not clear, at least to me.]
I can see my email with kmail on my server OK, but do not see it on my laptop, with an IMAPS account specified.
If I'm not mistaken, KMail can read maildirs directly (no IMAP server required).
So, to read these emails from an IMAP client that cannot read maildirs directly, you would need an IMAP server.
There may be issues with accessing your maildirs directly from KMail *and* an IMAP server at the same time, so you may want to set up KMail to use the IMAP server too if you do this.
Thanks for your response. However, I don't really understand your point. I am running dovecot IMAPS on my server. However, I do not have a kmail IMAPS account on the server. My question was: am I supposed to have one?
[My email on the server is in maildir format, and I see it perfectly well - on the server - with kmail.]
I am not running dovecot on my laptop, but I do have a kmail IMAPS account on the laptop, pointing to my server. Unfortunately, I do not see the email on my server from my laptop. That is my problem.
I was wondering if there is some way to instruct dovecot to re-create its index files? Can one just delete them - will they be re-created?
--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
I was wondering if there is some way to instruct dovecot to re-create its index files? Can one just delete them - will they be re-created?
Yes - if you delete the index files, dovecot will recreate them...
As for the rest - you aren't being very clear about your issue, so I'm afraid I can't help you.
--
Best regards,
Charles
On Saturday 15 September 2007 15:21:14 Charles Marcus wrote:
As for the rest - you aren't being very clear about your issue, so I'm afraid I can't help you.
I think the issue is fairly clear. I said in my posting:
I can see my email with kmail on my server OK, but do not see it on my laptop, with an IMAPS account specified.
It seems from Timo Sirainen's response that kmail's maildir format is actually incompatible with dovecot's IMAP format. More precisely, kmail cannot access folders in IMAP format (as eg ~/Maildir/.inbox/cur) while IMAP cannot access folders in kmail format (as eg ~/Maildir/inbox/cur)
If that is correct then I find it astonishing that neither dovecot nor kmail point out this incompatibility.
Is there, incidentally, a simple script that will convert kmail maildir format to something that dovecot likes?
I take it that if I converted kmail on my server to maildir++ format then I could read it on the server as an IMAP account?
--
Timothy Murphy
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
On Fri, 2007-09-14 at 17:50 +0100, Timothy Murphy wrote:
I have much the same problem, except that in my case I think my ignorance of dovecot is a major factor.
I have moved all my email (on my server) to ~/Maildir , with folders ~/Maildir/inbox/cur , etc.
Dovecot can't read that kind of a Maildir layout. See "Directory Structure" in http://wiki.dovecot.org/MailboxFormat/Maildir
participants (6)
-
Charles Marcus
-
Chris Richardson
-
FiL @ Kpoxa
-
Magnus Holmgren
-
Timo Sirainen
-
Timothy Murphy