[Dovecot] .'s in folder names
Hi there
We are trying to move over from 1 IMAP server to another, but the problem is dovecot does not allow .'s in folder names (and we have quite a number of people who do have .'s in their folder names (ie "www.domain stuff")
Is there anyway of allowing dovecot to allow .'s in folder names?
Thanks Craig Whitmore
On 2005-10-21 08:12:22 +1300, Craig Whitmore wrote:
We are trying to move over from 1 IMAP server to another, but the problem is dovecot does not allow .'s in folder names (and we have quite a number of people who do have .'s in their folder names (ie "www.domain stuff")
Is there anyway of allowing dovecot to allow .'s in folder names?
not if you use maildir with maildir+ the hierarchie delimiter is the "." but you are free to use mbox if you rely on ".".
http://en.wikipedia.org/wiki/Maildir
darix
On Fri, 2005-10-21 at 08:12 +1300, Craig Whitmore wrote:
Hi there
We are trying to move over from 1 IMAP server to another, but the problem is dovecot does not allow .'s in folder names (and we have quite a number of people who do have .'s in their folder names (ie "www.domain stuff")
Is there anyway of allowing dovecot to allow .'s in folder names?
Change MAILDIR_FS_SEP and MAILDIR_FS_SEP_S in src/lib-storage/index/maildir/maildir-storage.h to something else than "." (eg. "^" might be rarely enough used).
After that it's no longer a "standard" Maildir++ though and you'll have to keep patching Dovecot for each new version. I may make this configurable from config file some day though.
On Thu, 27 Oct 2005, Timo Sirainen wrote:
Change MAILDIR_FS_SEP and MAILDIR_FS_SEP_S in src/lib-storage/index/maildir/maildir-storage.h to something else than "." (eg. "^" might be rarely enough used).
After that it's no longer a "standard" Maildir++ though and you'll have to keep patching Dovecot for each new version. I may make this configurable from config file some day though.
What's the impact of using MAILDIR_FS_SEP = '/' ? Would it work or clash, e.g. when deleting a folder or renaming it?
Bye,
-- Steffen Kaiser
On Thu, 2005-10-27 at 15:59 +0200, Steffen Kaiser wrote:
On Thu, 27 Oct 2005, Timo Sirainen wrote:
Change MAILDIR_FS_SEP and MAILDIR_FS_SEP_S in src/lib-storage/index/maildir/maildir-storage.h to something else than "." (eg. "^" might be rarely enough used).
After that it's no longer a "standard" Maildir++ though and you'll have to keep patching Dovecot for each new version. I may make this configurable from config file some day though.
What's the impact of using MAILDIR_FS_SEP = '/' ? Would it work or clash, e.g. when deleting a folder or renaming it?
Most likely it wouldn't work at all. It would be completely incompatible with the code's logic.
Thursday 27 October 2005 15:01 skrev Timo Sirainen:
On Fri, 2005-10-21 at 08:12 +1300, Craig Whitmore wrote:
Hi there
We are trying to move over from 1 IMAP server to another, but the problem is dovecot does not allow .'s in folder names (and we have quite a number of people who do have .'s in their folder names (ie "www.domain stuff")
Is there anyway of allowing dovecot to allow .'s in folder names?
Change MAILDIR_FS_SEP and MAILDIR_FS_SEP_S in src/lib-storage/index/maildir/maildir-storage.h to something else than "." (eg. "^" might be rarely enough used).
After that it's no longer a "standard" Maildir++ though and you'll have to keep patching Dovecot for each new version. I may make this configurable from config file some day though.
According to http://www.courier-mta.org/?maildir.html, the period and the forward slash can (should?) be represented using modified UTF-7, just like non-ascii characters.
By the way, if I try to create a folder "foo.bar", Kmail says "Your IMAP
server does not allow the character '.'; please choose another folder name.",
but with Thunderbird a folder foo with a subfolder bar is created, with foo
greyed out and italic to signify that it can't contain mail. What gives?
-- Magnus Holmgren
On Sat, 2006-04-08 at 14:32 +0200, Magnus Holmgren wrote:
According to http://www.courier-mta.org/?maildir.html, the period and the forward slash can (should?) be represented using modified UTF-7, just like non-ascii characters.
Well, Courier-IMAP itself doesn't do that, instead it just gives "Invalid mailbox name" if I try to give '/' character to it. Probably other Courier products are able to do that.
By the way, if I try to create a folder "foo.bar", Kmail says "Your IMAP server does not allow the character '.'; please choose another folder name.", but with Thunderbird a folder foo with a subfolder bar is created, with foo
greyed out and italic to signify that it can't contain mail. What gives?
Because if you have namespace's hierarchy separator declared as '.' (which is the default) then "foo.bar" means that you want to create a "bar" mailbox under "foo" directory.
If you changed hierarchy separator to '/', then Dovecot could in theory encode '.' characters in some special way to the mailbox name, but I don't know if it's worth it..
participants (5)
-
Craig Whitmore
-
Magnus Holmgren
-
Marcus Rueckert
-
Steffen Kaiser
-
Timo Sirainen