Greetings, all
Last night I migrated our mail between two machines... both running dovecot
0.99.xx.
In the process, I wanted to make some small changes, namely that new mail be
delivered to mboxs in /var/mail/%u and IMAP mail stored in Maildirs at ~/.imap ...
I tried using:
default_mail_env = maildir:~/.imap/:INBOX=mbox:/var/mail/%u
But had no luck. Is it only 1.0 that can work with two different mailbox
formats? Or did I screw up somewhere else?
In the end, it actualy saved me a fair bit of work, since I'd have had to move
everyone's old inbox.
-- Curtis Maloney cmaloney@cardgate.net
Curtis Maloney wrote:
Greetings, all
Last night I migrated our mail between two machines... both running
dovecot 0.99.xx.
In the process, I wanted to make some small changes, namely that new
mail be delivered to mboxs in /var/mail/%u and IMAP mail stored in Maildirs at ~/.imap ...
I tried using:
default_mail_env = maildir:~/.imap/:INBOX=mbox:/var/mail/%u
But had no luck. Is it only 1.0 that can work with two different
mailbox formats? Or did I screw up somewhere else?
In the end, it actualy saved me a fair bit of work, since I'd have
had to move everyone's old inbox.
-- Curtis Maloney cmaloney@cardgate.net
Hi Curtis
The current dovecot release is capable of handling mbox and maildir simultaneously. The directive you need is
default_mail_env = maildir:~/.imap/:INBOX=/var/mail/%u
Regards
-- Chris Hills IT Services North East Worcestershire College
On Thu, 09 Sep 2004 08:33:16 +0100 "news.gmane.org" chills@ne-worcs.ac.uk wrote:
The current dovecot release is capable of handling mbox and maildir simultaneously. The directive you need is
default_mail_env = maildir:~/.imap/:INBOX=/var/mail/%u
Is it possible to simultaneously have both maildir and mbox folders? Perhaps something like
~/mail/folder1 ~/mail/folder2
~/Maildir/.folder3 ~/Maildir/.folder4
Cheers, Björn
-- _ _ ,_______________. Bjorn Gronvall (Björn Grönvall) /_______________/| Swedish Institute of Computer Science | || PO Box 1263, S-164 29 Kista, Sweden | Schroedingers || Email: bg@sics.se, Phone +46 -8 633 15 25 | Cat |/ Cellular +46 -70 768 06 35, Fax +46 -8 751 72 30 '---------------'
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 09-09-2004 18:27, Björn Grönvall wrote: | On Thu, 09 Sep 2004 08:33:16 +0100 | "news.gmane.org" chills@ne-worcs.ac.uk wrote: | | |>The current dovecot release is capable of handling mbox and maildir |>simultaneously. The directive you need is |> |>default_mail_env = maildir:~/.imap/:INBOX=/var/mail/%u | | | Is it possible to simultaneously have both maildir and mbox folders?
It is possible with 0.99 series to have inbox as mbox and remaining as Maildir.
It is possible also for some users to use mbox and other users Maildir, but only if _not_ setting default_mail_env (the internal default is to probe if a valid Maildir exists and fall back to mbox if not).
With 1.0 series anything (except making coffee) is possible...
Correct me somebody if I am wrong here...
~ - Jonas
- Jonas Smedegaard - idealist og Internet-arkitekt
- Tlf.: +45 40843136 Website: http://dr.jones.dk/
~ - Enden er nær: http://www.shibumi.org/eoti.htm -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBQJInn7DbMsAkQLgRAlzHAJ9OvpJv+xTEgOQvxjRkcV7ZQzIdlQCgkEwY QvNCPuzml9DqbQkPHJJX6X0= =4l41 -----END PGP SIGNATURE-----
On Thu, 9 Sep 2004 18:27:29 +0200 Björn Grönvall bg@sics.se wrote:
Is it possible to simultaneously have both maildir and mbox folders? Perhaps something like
~/mail/folder1 ~/mail/folder2
~/Maildir/.folder3 ~/Maildir/.folder4
Let me rephrase that, using dovecot v1.0-test40 how do I configure it to be able to access the above four folders. Do I need to play some games with namespaces? Should I set default_mail_env to some magic or perhaps do something completely different.
Cheers, Björn
-- _ _ ,_______________. Bjorn Gronvall (Björn Grönvall) /_______________/| Swedish Institute of Computer Science | || PO Box 1263, S-164 29 Kista, Sweden | Schroedingers || Email: bg@sics.se, Phone +46 -8 633 15 25 | Cat |/ Cellular +46 -70 768 06 35, Fax +46 -8 751 72 30 '---------------'
On 10.9.2004, at 15:33, Björn Grönvall wrote:
Is it possible to simultaneously have both maildir and mbox folders? Perhaps something like
~/mail/folder1 ~/mail/folder2
~/Maildir/.folder3 ~/Maildir/.folder4
Let me rephrase that, using dovecot v1.0-test40 how do I configure it to be able to access the above four folders. Do I need to play some games with namespaces? Should I set default_mail_env to some magic or perhaps do something completely different.
You'll need to create namespaces. For example:
namespace private { separator = / inbox = yes prefix = location = maildir:~/Maildir }
namespace private { separator = / prefix = mbox/ location = mbox:~/mail }
~/mail mboxes then show up under mbox/ folder while the rest is maildir.
On Sun, Sep 12, 2004 at 03:44:18PM +0300, Timo Sirainen wrote:
You'll need to create namespaces. For example:
namespace private { separator = / inbox = yes prefix = location = maildir:~/Maildir }
namespace private { separator = / prefix = mbox/ location = mbox:~/mail }
~/mail mboxes then show up under mbox/ folder while the rest is maildir.
does this work in 0.99.x? or do i have to upgrade to 1.0-tests? if that is the case, is there a particularly stable 1.0-test to run? or should i just wait until 1.0-stable is available?
-brian
"The cats tend to administer themselves, and contrary to the expected facts, the house and everything in it was installed for their benefit." -- Nic Clews
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 13-09-2004 15:32, Brian Hechinger wrote: | On Sun, Sep 12, 2004 at 03:44:18PM +0300, Timo Sirainen wrote: | |>You'll need to create namespaces. For example: |> |>namespace private { |> separator = / |> inbox = yes |> prefix = |> location = maildir:~/Maildir |>} |> |>namespace private { |> separator = / |> prefix = mbox/ |> location = mbox:~/mail |>} |> |>~/mail mboxes then show up under mbox/ folder while the rest is maildir. | | | does this work in 0.99.x?
No.
| or do i have to upgrade to 1.0-tests? if that is | the case, is there a particularly stable 1.0-test to run? or should i just | wait until 1.0-stable is available?
It seems the most stable one is the most recent one - but yes, if you want true official stability you will probably have to wait...
~ - Jonas
- Jonas Smedegaard - idealist og Internet-arkitekt
- Tlf.: +45 40843136 Website: http://dr.jones.dk/
~ - Enden er nær: http://www.shibumi.org/eoti.htm -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFBRaR/n7DbMsAkQLgRAlR5AJ9yeWxxw+fjrHvkri3da1yCFINEYgCfcRO/ uTri+BbjxEdEtEGR2BXTgBA= =IxyE -----END PGP SIGNATURE-----
On 9.9.2004, at 10:33, news.gmane.org wrote:
The current dovecot release is capable of handling mbox and maildir simultaneously. The directive you need is
default_mail_env = maildir:~/.imap/:INBOX=/var/mail/%u
Actually no. That just makes it treat /var/mail/%u as INBOX Maildir. Unless I've accidentally changed something? :)
Timo Sirainen wrote:
On 9.9.2004, at 10:33, news.gmane.org wrote:
The current dovecot release is capable of handling mbox and maildir simultaneously. The directive you need is
default_mail_env = maildir:~/.imap/:INBOX=/var/mail/%u
Actually no. That just makes it treat /var/mail/%u as INBOX Maildir. Unless I've accidentally changed something? :)
Hmm, I could have sworn I have run it in this configuration before!
-- Chris Hills IT Services North East Worcestershire College
Timo Sirainen wrote:
On 9.9.2004, at 10:33, news.gmane.org wrote:
The current dovecot release is capable of handling mbox and maildir simultaneously. The directive you need is
default_mail_env = maildir:~/.imap/:INBOX=/var/mail/%u
Actually no. That just makes it treat /var/mail/%u as INBOX Maildir. Unless I've accidentally changed something? :)
Yeah... I was reading through the mail-storage code the other day, and it seems to be one or the other, as far as 0.99 goes.
I'm all sorted now, anyway... but it has inspired me to build a mailbox conversion tool using the dovecot mail handling code.... watch this space.
-- Curtis Maloney cmaloney@cardgate.net
participants (7)
-
Björn Grönvall
-
Brian Hechinger
-
Chris Hills
-
Curtis Maloney
-
Jonas Smedegaard
-
news.gmane.org
-
Timo Sirainen