Christoph Hohmann
2004-May-29 17:49 UTC
[Dovecot] Dovecot returns everything starting with "." as folder
Hi, I'm using dovecot imapd 0.99.10.5 from debian unstable and I noticed that dovecot returns everything in the maildir folder that starts with a "." as a folder as the result of LIST "" "%" command without checking if it is really a maildir folder (must contain the directories cur, new, tmp and the file maildirfolder). This is a little bit annoying because it also returns Sylpheed's cache files '.sylpheed_cache' and '.sylpheed_mark' if they exist in the maildir. -- http://reboot.animeirc.de http://sylpheed-claws.sourceforge.net/
Timo Sirainen
2004-May-29 22:14 UTC
[Dovecot] Dovecot returns everything starting with "." as folder
On Sat, 2004-05-29 at 20:49, Christoph Hohmann wrote:> I'm using dovecot imapd 0.99.10.5 from debian unstable and I > noticed that dovecot returns everything in the maildir > folder that starts with a "." as a folder as the result of > > LIST "" "%" > > command without checking if it is really a maildir folder > (must contain the directories cur, new, tmp and the file > maildirfolder).It's a bit useless to check it in most situations and it would just cause extra disk I/O if system doesn't support struct dirent->d_type field.. But since this has been asked often enough..: http://www.dovecot.org/patches/maildir-stat-dirs.patch You'd probably want to run autogen.sh + configure again, or just #define HAVE_DIRENT_D_TYPE in config.h. -------------- 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/20040530/8116ff0e/attachment-0001.bin>
Christoph Hohmann
2004-May-29 22:33 UTC
[Dovecot] Dovecot returns everything starting with "." as folder
Timo Sirainen <tss at iki.fi> wrote:> > I'm using dovecot imapd 0.99.10.5 from debian unstable and I > > noticed that dovecot returns everything in the maildir > > folder that starts with a "." as a folder as the result of > > > > LIST "" "%" > > > > command without checking if it is really a maildir folder > > It's a bit useless to check it in most situations and it would just > cause extra disk I/O if system doesn't support struct dirent->d_type > field.. But since this has been asked often enough..: > > http://www.dovecot.org/patches/maildir-stat-dirs.patchHow often do IMAP clients use the LIST commands, that this extra IO would cause significant slowdown?> You'd probably want to run autogen.sh + configure again, or just #define > HAVE_DIRENT_D_TYPE in config.h.I'm using the debian package. -- http://reboot.animeirc.de http://sylpheed-claws.sourceforge.net/