Ian Thurlbeck
2008-Oct-22 12:43 UTC
[Dovecot] dovecot 1.0 to 1.1 upgrade and filesystem separators
Dear All I have a test system where I am trying out 1.1.4 On the old 1.0rc6 (!) system I had edited: src/lib-storage/index/maildir/mail-storage.h to change: #define MAILDIR_FS_SEP ';' #define MAILDIR_FS_SEP_S ";" so I can get some mail folder hierarchy and '.'s in folder names - this all worked perfectly. Under 1.1.4 the MAILDIR_FS_SEP lines are no longer present. What is the current practice for doing what I was doing before ? Many thanks! Ian -- Ian Thurlbeck http://www.stams.strath.ac.uk/ Statistics and Modelling Science, University of Strathclyde Livingstone Tower, 26 Richmond Street, Glasgow, UK, G1 1XH Tel: +44 (0)141 548 3667 Fax: +44 (0)141 552 2079 The University of Strathclyde is a charitable body, registered in Scotland, number SC015263.
Timo Sirainen
2008-Oct-22 17:35 UTC
[Dovecot] dovecot 1.0 to 1.1 upgrade and filesystem separators
On Wed, 2008-10-22 at 13:43 +0100, Ian Thurlbeck wrote:> #define MAILDIR_FS_SEP ';' > #define MAILDIR_FS_SEP_S ";" > > so I can get some mail folder hierarchy and '.'s in > folder names - this all worked perfectly. > > Under 1.1.4 the MAILDIR_FS_SEP lines are no longer present. > > What is the current practice for doing what I was doing before ?src/lib-storage/list/mailbox-list-maildir.c struct mailbox_list maildir_mailbox_list = { MEMBER(name) MAILBOX_LIST_NAME_MAILDIRPLUSPLUS, MEMBER(hierarchy_sep) '.', Change hierarchy_sep to ';'. A better long-term plan would be to use listescape plugin: http://dovecot.org/patches/1.1/listescape-plugin.c That of course requires that you rename all the existing maildirs. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20081022/f760262b/attachment-0002.bin>
Ian Thurlbeck
2008-Oct-23 11:00 UTC
[Dovecot] dovecot 1.0 to 1.1 upgrade and filesystem separators
Timo Sirainen wrote:> On Wed, 2008-10-22 at 13:43 +0100, Ian Thurlbeck wrote: >> #define MAILDIR_FS_SEP ';' >> #define MAILDIR_FS_SEP_S ";" >> >> so I can get some mail folder hierarchy and '.'s in >> folder names - this all worked perfectly. >> >> Under 1.1.4 the MAILDIR_FS_SEP lines are no longer present. >> >> What is the current practice for doing what I was doing before ? > > src/lib-storage/list/mailbox-list-maildir.c > > struct mailbox_list maildir_mailbox_list = { > MEMBER(name) MAILBOX_LIST_NAME_MAILDIRPLUSPLUS, > MEMBER(hierarchy_sep) '.', > > Change hierarchy_sep to ';'. >That worked perfectly, thanks.> A better long-term plan would be to use listescape plugin: > http://dovecot.org/patches/1.1/listescape-plugin.c > > That of course requires that you rename all the existing maildirs.Ian -- Ian Thurlbeck http://www.stams.strath.ac.uk/ Statistics and Modelling Science, University of Strathclyde Livingstone Tower, 26 Richmond Street, Glasgow, UK, G1 1XH Tel: +44 (0)141 548 3667 Fax: +44 (0)141 552 2079 The University of Strathclyde is a charitable body, registered in Scotland, number SC015263.