Hi all I'm using dovecot 1.0.rc15 to serve a maildir by IMAP. I have an IMAP subdirectory called subscriptions. The messages are in maidir/.subscriptions/cur/ etc. Dovecot is renaming the directory .subscriptions/ to subscriptions/ This means that when my IMAP client requests this directory, it gets the message "no such directory", and dovecot also gives the error message: dovecot: IMAP(tcv): read() failed with subscription file /var/mail/maildir/tcv/subscriptions: Is a directory The two should be able to live happily side by side, with the subscriptions file called "subscriptions" and the maildir called ".subsciptions". The offending function is maildir_subscriptions_convert_099() in src/lib-storage/index/maildir/maildir-storage.c Can someone with developer access please change this so that rename() is not called if subscriptions is a directory. Thanks, Tom
On Wed, Aug 08, 2007 at 01:14:39PM +0100, Tom Vajzovic wrote:> Hi all > > I'm using dovecot 1.0.rc15 to serve a maildir by IMAP. > > I have an IMAP subdirectory called subscriptions. The messages are in > maidir/.subscriptions/cur/ etc. > > Dovecot is renaming the directory .subscriptions/ to subscriptions/ > > This means that when my IMAP client requests this directory, it gets the > message "no such directory", and dovecot also gives the error message: > > dovecot: IMAP(tcv): read() failed with subscription > file /var/mail/maildir/tcv/subscriptions: Is a directory > > The two should be able to live happily side by side, with the > subscriptions file called "subscriptions" and the maildir called > ".subsciptions". > > The offending function is > > maildir_subscriptions_convert_099() > > in src/lib-storage/index/maildir/maildir-storage.c > > Can someone with developer access please change this so that rename() is > not called if subscriptions is a directory.That only solves the problem for your particular setup. What with mbox installations? Call it .subscriptions again? And what with mixed maildir+mbox installations? How should a folder named "subscriptions" be called there? Geert
On Wed, 2007-08-08 at 13:14 +0100, Tom Vajzovic wrote:> Hi all > > I'm using dovecot 1.0.rc15 to serve a maildir by IMAP. > > I have an IMAP subdirectory called subscriptions. The messages are in > maidir/.subscriptions/cur/ etc. > > Dovecot is renaming the directory .subscriptions/ to subscriptions/Thanks, fixed: http://hg.dovecot.org/dovecot-1.0/rev/1c631fec9c68 -------------- 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/20070808/592aff3e/attachment-0002.bin>