I've had a go at adding a "readonly" namespace option to dovecot-1.0-stable. My idea is to provide access to NetApp ".snapshot" versions of NFS-mounted maildirs to let users recover their own messages. I'm not sure whether anyone else would find it useful, but here it is in case :-)
There are two patches, one to add the option, the other to add some checking to various IMAP commands just in case the client doesn't behave itself when told the mailbox is read-only ;-)
It's used something like :
namespace private { separator = "/" prefix = "#snapshot/" location = maildir:%h/Maildir/.snapshot/nightly.0:INDEX=/export/mail/%h/.S napshot-indexes:CONTROL=/export/mail/%h/.Snapshot-indexes hidden = yes readonly = yes }
I've not tested it very thoroughly, and none of our users have Maildirs on the NetApp yet ...
Of course, this will all be redundant when we have ACL support.
Best Wishes, Chris
On Tue, 15 Mar 2005 23:06:24 +0200 Timo Sirainen tss@iki.fi wrote:
On Tue, 2005-03-15 at 09:11 +0000, Chris Wakelin wrote:
Is it possible to have folders on read-only partitions in Dovecot 1.0-stable?
Only if you set the permissions so that Dovecot really doesn't have write access there. Other permission checks will come with ACL code some day..
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-- Christopher Wakelin, c.d.wakelin@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