[Dovecot] INBOX can't be deleted

Timo Sirainen tss at iki.fi
Tue Apr 26 12:18:28 EEST 2005


On Mon, 2005-04-25 at 18:07 +0200, Marten Lehmann wrote:
> Hi,
> 
> surely it can't and it shouldn't. I'm just wondering why a check for 
> "INBOX" is done in src/imap/cmd-delete.c AND 
> src/lib-storage/index/maildir/maildir-storage.c. The first is clear 
> because it gives an imap-error to the client. But for which case is the 
> check in maildir-sorage.c? Just to be absolutely sure?

Yep. And there's no simple way to delete maildir INBOX either because
it's the root directory under which other mailboxes exist..

> The reason for me to ask is, because I need to disable deletions for 
> five folders: Drafts, Infected, Junk, Sent and Trash. A certain 
> webmail-interface and spamfilter will rely on these folders, so nobody 
> shall be able to delete or rename them. First I placed the checks in 
> cmd-delete.c. Should I place them in maildir-storage.c additionally? In 
> normal circumstance, the check in maildir-storage.c should never be 
> reached, right?

Right, don't bother adding them to maildir-storage.c

-------------- 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/20050426/eecbd5e6/attachment-0001.bin>


More information about the dovecot mailing list