[Dovecot] Another minor IMAP LIST issue

Chris Wakelin c.d.wakelin at reading.ac.uk
Wed Jul 20 18:52:21 EEST 2005


I've just noticed that Dovecot 1.0-stable and 1.0-test78 don't include
mbox folders with names beginning with "." in the IMAP LIST output.

These are often used to store "hidden" folders for storing things like
IMAP client configuration (e.g. Pine 4.x, IMHO, Prayer). Usually the
user shouldn't be able to see these, but there are occassions when they
might. It seems to me to be better to let the client decide.

As I understand it, the IMAP RFC suggests that if you can "SELECT
folderpath" a folder, you should also be able to list it with 'LIST ""
"folderpath"'

I've written a patch against 1.0-stable (it also works with test78) to
add an extra namespace option "showdotfiles" (default "no"), to include
folders beginning with "." (but excluding ".imap" and "." and ".." for
obvious reasons!). It's used as follows :-

# default namespace
namespace private {
  separator = "/"
  prefix =
  inbox = yes
  showdotfiles = yes
}
# for backwards compatibility with UW-IMAP:
namespace private {
  separator = "/"
  prefix = "mail/"
  hidden = yes
  showdotfiles = yes
}

...

Let me know if you find it useful!

Best Wishes,
Chris

-- 
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
Christopher Wakelin,                           c.d.wakelin at reading.ac.uk
IT Services Centre, The University of Reading,  Tel: +44 (0)118 378 8439
Whiteknights, Reading, RG6 2AF, UK              Fax: +44 (0)118 975 3094
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: showdotfiles.patch
URL: <http://dovecot.org/pipermail/dovecot/attachments/20050720/d90b819c/attachment-0001.pl>


More information about the dovecot mailing list