I've been running a mbox solution using UW's IMAP server. I've run it for years. Now do to heavy message volumes, I've decided to to take the plunge to convert to the Maildir format. I am currently testing a single user, and have successfully converted the mail messages from mbox to Maildir format, and now I am setting up the procmail tool to place the messages into the correct folder. I have been following the http://wiki.dovecot.org/Migration/MailFormat formula, but now have a question. New Messages are now being placed into the ~user/Maildir/new folder. However, when I attempt to retrieve those messages, Dovecot does not find them. Why not? -- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant ------------------------------------------------------------------------ ABS Computer Technology, Inc. <http://www.ABS-CompTech.com> - Email, Internet and Security Consultants SPAMZapper <http://www.Spam-Zapper.com> - No-JunkMail.com <http://www.No-JunkMail.com> - *True Spam Elimination*.
On Wednesday, October 22 at 11:35 PM, quoth Albert E. Whale:> I am currently testing a single user, and have successfully converted > the mail messages from mbox to Maildir format, and now I am setting up > the procmail tool to place the messages into the correct folder. I have > been following the http://wiki.dovecot.org/Migration/MailFormat formula, > but now have a question. > > New Messages are now being placed into the ~user/Maildir/new folder.Procmail understands Maildir natively; you don't have to tell it to put messages into the "new" folder, you should just tell it to put things into the Maildir folder and end the line with a /, like so: # correct! :0 ~user/Maildir/ # incorrect :0 ~user/Maildir/new/ # also incorrect :0 ~user/Maildir/new If you specify the "new" directory, you're either telling procmail to treat that directory like an MH folder, which is wrong, or you're telling procmail that the "new" directory is a Maildir, in which case it will create another "new" directory within that directory (along with a "tmp" and "cur" directories). ~Kyle -- As an adolescent I aspired to lasting fame, I craved factual certainty, and I thirsted for a meaningful vision of human life. So I became a scientist. This is like becoming an archbishop so you can meet girls. -- M. Cartmill -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 204 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20081022/c01376f2/attachment-0002.bin>
Kyle Wheeler wrote:> On Wednesday, October 22 at 11:35 PM, quoth Albert E. Whale: >> I am currently testing a single user, and have successfully converted >> the mail messages from mbox to Maildir format, and now I am setting >> up the procmail tool to place the messages into the correct folder. >> I have been following the >> http://wiki.dovecot.org/Migration/MailFormat formula, but now have a >> question. >> >> New Messages are now being placed into the ~user/Maildir/new folder. > > Procmail understands Maildir natively; you don't have to tell it to > put messages into the "new" folder, you should just tell it to put > things into the Maildir folder and end the line with a /, like so: > > # correct! > :0 > ~user/Maildir/ > > # incorrect > :0 > ~user/Maildir/new/ > > # also incorrect > :0 > ~user/Maildir/new > > If you specify the "new" directory, you're either telling procmail to > treat that directory like an MH folder, which is wrong, or you're > telling procmail that the "new" directory is a Maildir, in which case > it will create another "new" directory within that directory (along > with a "tmp" and "cur" directories). > > ~KyleThanks Kyle, the Procmailrc script I am using is as follows: more ~health/.procmailrc # Maildir procmail setup SHELL=/bin/sh PATH="$HOME/bin:/usr/bin:/usr/local/bin:/usr/include:/usr/local/sbin:/bin:/sbin: /usr/sbin" MAILDIR=$HOME/Maildir/ ORGMAIL=$HOME/Maildir/ DEFAULT=$ORGMAIL LOGFILE=/var/Procmail/log LOGABSTRACT=all VERBOSE=yes :0 $ORGMAIL I believe that this matches your correct example. That is just where Procmail places them. -- Albert E. Whale, CHS CISA CISSP Sr. Security, Network, Risk Assessment and Systems Consultant ------------------------------------------------------------------------ ABS Computer Technology, Inc. <http://www.ABS-CompTech.com> - Email, Internet and Security Consultants SPAMZapper <http://www.Spam-Zapper.com> - No-JunkMail.com <http://www.No-JunkMail.com> - *True Spam Elimination*.
On 23 Oct 2008, at 16:17, Albert E. Whale wrote:> Neil wrote: >> >> On 22 Oct 2008, at 23:35, Albert E. Whale wrote: >> >>> I've been running a mbox solution using UW's IMAP server. I've >>> run it >>> for years. >>> >>> Now do to heavy message volumes, I've decided to to take the >>> plunge to >>> convert to the Maildir format. >>> >>> I am currently testing a single user, and have successfully >>> converted >>> the mail messages from mbox to Maildir format, and now I am >>> setting up >>> the procmail tool to place the messages into the correct folder. >>> I have >>> been following the http://wiki.dovecot.org/Migration/MailFormat >>> formula, >>> but now have a question. >>> >>> New Messages are now being placed into the ~user/Maildir/new folder. >>> However, when I attempt to retrieve those messages, Dovecot does not >>> find them. Why not? >> >> How are you attempting to retrieve them? >> > I am trying to retrieve them using the POP3 section of Thunderbird. > > Is Maildir an IMAP format?No, the protocol (IMAP/POP3) is irrelevant. The important part to note (and where I suspect your problem is) is that the folder, as far as your client (Thunderbird) is concerned, is "Maildir/", the "Maildir/ new/" directory is part of Maildir's internal format. That is to say, you should never be putting "Maildir/(new|cur|tmp)" as a mailbox name into a client, just "Maildir/". -N.