Is it possible to have some folders be mbox and some be maildir format? Why you might ask? Sometime for diagnostics I have the Exim MTA archive certain messages in MBOX format and then I want to copy them into an imao folder to look at them with Thunderbird. When I used MBOX all I had to do was copy the file into a folder and it worked. So what I'd like to do is have a folder with a special name that is MBOX and the rest be maildir. Ideally have Dovecot be smart so that if the file exists then it is assumed to be MBOX and if the directory exists then it is assumed to be maildir. Has anyone done anything like this?
* On 21/04/07 09:38 -0700, Marc Perkel wrote: | Is it possible to have some folders be mbox and some be maildir format? | | Why you might ask? Sometime for diagnostics I have the Exim MTA archive | certain messages in MBOX format and then I want to copy them into an | imao folder to look at them with Thunderbird. Hi there Mark, Why don't you just use a tool like mbox2maildir to do that? -Wash http://www.netmeister.org/news/learn2quote.html DISCLAIMER: See http://www.wananchi.com/bms/terms.php -- +======================================================================+ |\ _,,,---,,_ | Odhiambo Washington <wash at wananchi.com> Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 +======================================================================+ "I may not be totally perfect, but parts of me are excellent." -- Ashleigh Brilliant -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 2243 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20070423/058d116f/attachment-0002.bin>
Odhiambo WASHINGTON wrote:> * On 21/04/07 09:38 -0700, Marc Perkel wrote: > | Is it possible to have some folders be mbox and some be maildir format? > | > | Why you might ask? Sometime for diagnostics I have the Exim MTA archive > | certain messages in MBOX format and then I want to copy them into an > | imao folder to look at them with Thunderbird. > > Hi there Mark, > > Why don't you just use a tool like mbox2maildir to do that? > > >That's the backup plan.
Why couldn't this be done. If you re in maildir mode opening a folder you are expecting a directory structure: .folder .folder/cur .folder/tmp .folder/new However if instead you find an mbox file called: folder Then you just open it as mbox and have it work automatically. Or alternatively translate it to maildir automagically.
> Is it possible to have some folders be mbox and some be maildir format?Claudio Succa posted his successful configuration back in 2005, at my request. I never actually put it into practice, and I don't know how much has changed since 1.0test68, but good luck!: http://www.dovecot.org/list/dovecot/2005-June/007574.html
On Sat, 2007-04-21 at 09:38 -0700, Marc Perkel wrote:> Is it possible to have some folders be mbox and some be maildir format? > > Why you might ask? Sometime for diagnostics I have the Exim MTA archive > certain messages in MBOX format and then I want to copy them into an > imao folder to look at them with Thunderbird. When I used MBOX all I had > to do was copy the file into a folder and it worked. So what I'd like to > do is have a folder with a special name that is MBOX and the rest be > maildir.You could do this with namespaces. http://wiki.dovecot.org/Namespaces has an example.> Ideally have Dovecot be smart so that if the file exists then it is > assumed to be MBOX and if the directory exists then it is assumed to be > maildir. Has anyone done anything like this?I was thinking about implementing this to v1.1, but it's not so easy, so I'm not sure. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070511/20875bbe/attachment.bin>
On Fri, May 11, 2007 at 04:50:41PM +0300, Timo Sirainen wrote:> > Ideally have Dovecot be smart so that if the file exists then it is > > assumed to be MBOX and if the directory exists then it is assumed to be > > maildir. Has anyone done anything like this? > > I was thinking about implementing this to v1.1I've already asked about it in the past, but since it came again, I just wanted to add my wish for this (before I write a bigger message on another subject). That's one of the features we're most missing - mixing mboxes and Maildirs in the same namespace - that is due to the fact that many users use such mailers like pine, mutt, etc. which support it, and choose to keep some of their bigger mailboxes as maildirs and their smaller ones as mbox, and except for at the time of creation, it's relatively transparent. Another wish would be a better form of cascading - subfolders as subdirectories, instead of this awkward Maildir++ dot-separated format. These two together will save me (and some user users who use IMAP in addition to mutt or pine) the need to create two directory full of symbolic links to access thei mail through IMAP.> but it's not so easy, so I'm not sure.Having looked again at the code, this does indeed not seem all that easy. The code handling the mailbox namespace browsing seems too tightly integrated with the code handling the mailboxes themselves. I suppose it would be best if those two were separated, so a namespace module will handle issues like "what subfolders does the folder Foo have" and "what is the physical path for folder Foo.Bar", while the mailbox module will handle issues like "what messages are there in folder whose physical path is mail/.Foo.Bar" and "fetch the message with UID 117 from the folder whose physical path is mail/.Foo.Bar". The mailbox access module will query the namespace module to obtain those paths. I'm not sure how much work this restructuring would be, but it will definitely be useful, as it will enable adding different namespace modules (with more flexibility) and different folder formats separately in a cleaner way. Which brings the subject of the next message I'm about to write to this list. -- Tom -- Tom Alsberg - hacker (being the best description fitting this space) Web page: http://www.cs.huji.ac.il/~alsbergt/ DISCLAIMER: The above message does not even necessarily represent what my fingers have typed on the keyboard, save anything further.