[Dovecot] Namespace prefix not ending with separator

Chris Wakelin c.d.wakelin at reading.ac.uk
Mon Apr 11 15:11:15 EEST 2005


I'm still battling my way through using hidden namespaces to hide the 
change from UW-IMAP to Dovecot 1.0-stable from my users.

The latest problem is that some (probably many) users have their IMAP 
folder prefix set to "~/mail" rather than "~/mail/".

I have hidden namespaces with prefixes "~/mail/", "~%u/mail/" and 
"mail/". 

LIST "~/mail" "*"

returns nothing, so I've tried adding another namespace for "~/mail".

Now LIST "~/mail" "*" returns

* LIST (\NoInferiors \UnMarked) "/" "~/mailtest1/test1-2"
* LIST (\NoInferiors \UnMarked) "/" "~/mailtest2"
* LIST (\NoInferiors \UnMarked) "/" "~/mailtest3"

whereas UW-IMAP returns

* LIST (\NoInferiors \UnMarked) "/" ~/mail/test1/test1-2
* LIST (\NoInferiors \UnMarked) "/" ~/mail/test2
* LIST (\NoInferiors \UnMarked) "/" ~/mail/test3

I wonder whether LIST should insert an extra namespace separator in 
such cases?

Having said that, it seems to work, except it may cause problems with 
folder subscriptions, which I've had to hack in order for them to be 
compatible with UW-IMAP (i.e. to store them as "~/mail/test1" etc.)

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




More information about the dovecot mailing list