I'm attempting to use Maildir and mbox together until I can finish migrating all mailboxes and figure out issues I'm having with a couple other mailboxes. But, I want to officially start using Maildir as the primary msg. store. Now...when I configure Dovecot as follows, it creates new folders in the ~/mail folder, which is where my mboxes reside: #default_mail_env #default_mail_env = mbox:~/mail/:INBOX=~/mbox #default_mail_env = mbox:~/:INBOX=~/mbox #default_mail_env = mbox:~/mail:INBOX=~/mbox default_mail_env = maildir:~/Maildir #namespace private { # separator = / # inbox = yes # prefix # location = mbox:~/mail:INBOX=~/mbox #} #namespace private { # separator = / # prefix = "Maildir/" # location = maildir:~/Maildir #} namespace private { separator = / inbox = yes location = maildir:~/Maildir } namespace private { separator = / location = mbox:~/mail } I would like to have access to the mbox hierarchy, but I want all new folders by default created in ~/Maildir. How do I go about acheiving this? Thanks, Frank
On Sat, 2005-03-12 at 08:39 -0600, F. Even wrote:> namespace private { > separator = / > inbox = yes > location = maildir:~/Maildir > } > namespace private { > separator = / > location = mbox:~/mail > } > > I would like to have access to the mbox hierarchy, but I want all new > folders by default created in ~/Maildir. How do I go about acheiving this?If you don't want to give some prefix to mbox, but you'd want Dovecot to automatically figure out in which namespaces the mailboxes are.. Sorry, not possible. Perhaps you could do that by changing the code (some stat()ing in namespace_find() might do it). -------------- 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/20050312/f0494877/attachment-0001.bin>
Timo Sirainen wrote:> On Sat, 2005-03-12 at 08:39 -0600, F. Even wrote: > >>namespace private { >> separator = / >> inbox = yes >> location = maildir:~/Maildir >>} >>namespace private { >> separator = / >> location = mbox:~/mail >>} >> >>I would like to have access to the mbox hierarchy, but I want all new >>folders by default created in ~/Maildir. How do I go about acheiving this? > > > If you don't want to give some prefix to mbox, but you'd want Dovecot to > automatically figure out in which namespaces the mailboxes are.. Sorry, > not possible. Perhaps you could do that by changing the code (some > stat()ing in namespace_find() might do it).Well...I had a prefix the second namespace, and it was appending the name of the prefix to the beginning of each folder. It didn't work right, so I removed the prefix and everything looked fine, nice and unified even...but I didn't understand why by default it was trying to create folders in the mbox hierarchy. I think I figured out the issue though...I had removed the "prefix" completely from the first definition, that might have caused the problem, because it works as expected with this configuration: namespace private { separator = / inbox = yes prefix location = maildir:~/Maildir } namespace private { separator = / prefix = "z_mbox/" location = mbox:~/mail } Thanks for your help. Frank