Hi, I'm using dovecot 1.0.5 with mbox storage. Users can't delete folders that are created to 'only hold other folders'. I can create these folders with no problem. They are directories in the file system. Normal folders (which are mbox files) are deleted with no problem. I've tried with both squirrelmail and Thunderbird, and what happens when a delete is requested, is that all files within the folder's dir tree are deleted and the client is unsubscribed, but the directory tree remains. Any ideas? Thanks, Ken -- Ken Anderson Pacific.Net
Timo Sirainen
2007-Oct-06 01:04 UTC
[Dovecot] trouble deleting folders that only contain folders
On Fri, 2007-10-05 at 16:51 -0500, Ken A wrote:> Hi, > > I'm using dovecot 1.0.5 with mbox storage. Users can't delete folders > that are created to 'only hold other folders'. I can create these > folders with no problem. They are directories in the file system. Normal > folders (which are mbox files) are deleted with no problem. I've tried > with both squirrelmail and Thunderbird, and what happens when a delete > is requested, is that all files within the folder's dir tree are deleted > and the client is unsubscribed, but the directory tree remains.I think this is a client bug. See what commands the client sends. Seems to work right with me: x create dir/ x OK Create completed. x list "" dir * LIST (\Noselect \HasChildren) "/" "dir" x OK List completed. x delete dir x OK Delete completed. x list "" dir x OK List completed. -------------- 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/20071006/709d495f/attachment-0002.bin>
Timo Sirainen wrote:> On Fri, 2007-10-05 at 16:51 -0500, Ken A wrote: >> Hi, >> >> I'm using dovecot 1.0.5 with mbox storage. Users can't delete folders >> that are created to 'only hold other folders'. I can create these >> folders with no problem. They are directories in the file system. Normal >> folders (which are mbox files) are deleted with no problem. I've tried >> with both squirrelmail and Thunderbird, and what happens when a delete >> is requested, is that all files within the folder's dir tree are deleted >> and the client is unsubscribed, but the directory tree remains. > > I think this is a client bug. See what commands the client sends. Seems > to work right with me: > > x create dir/ > x OK Create completed. > x list "" dir > * LIST (\Noselect \HasChildren) "/" "dir" > x OK List completed. > x delete dir > x OK Delete completed. > x list "" dir > x OK List completed. >I get this, from telnet: x create dir/ x OK Create completed. x list "" dir * LIST (\Noselect \HasChildren) "/" "dir" x OK List completed. x delete dir x NO Mailbox isn't selectable: dir x list "" dir * LIST (\Noselect \HasChildren) "/" "dir" x OK List completed. I must have something misconfigured. mail_location: mbox:/var/spool/mail/folders/%u:INBOX=/var/spool/mail/%u:INDEX=/var/spool/dovecot_indexes/%u Thanks for any assistance, Ken -- Ken Anderson Pacific.Net