[Dovecot] maildir and the separator for subfolder
hi,
I use dovecot 1.0rc15 with one maildir namespace.
I'd like to be able to use '.' in folders and subfolders name.
So, I setup the default namespace with
separator =':'
But, when I create some folders and then subfolders with thunderbird the filename one the server are named with some '.' no ':'...
It seems that dovecot always interprets '.' as a separator for folders.
Is-it a bug ?
yours,
David Bonnafous
Institut de Mathématiques
Université Paul Sabatier
Toulouse - France
On Thu, 2007-02-15 at 09:23 +0100, David Bonnafous wrote:
I use dovecot 1.0rc15 with one maildir namespace.
I'd like to be able to use '.' in folders and subfolders name.
The only way to do that is to change the sources:
src/lib-storage/index/maildir/maildir-storage.h
#define MAILDIR_FS_SEP '.' #define MAILDIR_FS_SEP_S "."
Change both of these to whatever you want the separator to be. I wouldn't recommend ':' though, it could cause problems.
On Thu, 2007-02-15 at 07:40 -0500, Charles Marcus wrote:
I'd like to be able to use '.' in folders and subfolders name.
The only way to do that is to change the sources:
Is it still on the TODO list to make this a config option?
Yea, with CVS HEAD it's really simple to implement. But with CVS HEAD I want a bit different setting than just "maildir_separator" so I haven't implemented it. (I want some more generic mailbox directory layout settings)
On Thu, Feb 15, 2007 at 02:33:41PM +0200, Timo Sirainen wrote:
On Thu, 2007-02-15 at 09:23 +0100, David Bonnafous wrote:
I use dovecot 1.0rc15 with one maildir namespace.
I'd like to be able to use '.' in folders and subfolders name.
The only way to do that is to change the sources:
src/lib-storage/index/maildir/maildir-storage.h
#define MAILDIR_FS_SEP '.' #define MAILDIR_FS_SEP_S "."
Change both of these to whatever you want the separator to be. I wouldn't recommend ':' though, it could cause problems.
Would it be possible (and would it make sense) to use some sort of "escaping" to make the separator used for encoding hierarchy in the backend Maildir *directories* transparent to the client and to the users? (I emphasize *directories* to distinguish this separator from the separator as used in the IMAP protocol). This could be similar to the common practice in shells and other environments of escaping special characters with a backslash. For example, if the filesystem separator were a dot, then a single mailbox referenced as "i.like.dots" might be encoded in the filesystem as ".i..like..dots". If this mailbox were a parent of "child", then we'd have the directory name ".i..like..dots.child".
-- Glenn Leavell glenn@usg.edu Office of Information and Instructional Technology Board of Regents of the University System of Georgia
On Thu, 2007-02-15 at 09:27 -0500, Glenn Leavell wrote:
Would it be possible (and would it make sense) to use some sort of "escaping" to make the separator used for encoding hierarchy in the backend Maildir *directories* transparent to the client and to the users? (I emphasize *directories* to distinguish this separator from the separator as used in the IMAP protocol). This could be similar to the common practice in shells and other environments of escaping special characters with a backslash. For example, if the filesystem separator were a dot, then a single mailbox referenced as "i.like.dots" might be encoded in the filesystem as ".i..like..dots". If this mailbox were a parent of "child", then we'd have the directory name ".i..like..dots.child".
That's possible, but then the directory layout wouldn't be called Maildir++ anymore. Maybe in v1.2.
participants (4)
-
Charles Marcus
-
David Bonnafous
-
Glenn Leavell
-
Timo Sirainen