delete selected folder leaves empty dir on disk

Rob Siemborski rjs3 at andrew.cmu.edu
Fri Jan 10 14:36:58 EST 2003


Yeah, we know about this.  There's no good way around it, since a totally
separate imapd could be selected on the folder as well, and the directory
would still be left around.

-Rob

On Fri, 10 Jan 2003, Steve Barber wrote:

> I'm submitting a message from one of my co-workers who's not
> subscribed directly to the list...
>
> -------- Original Message --------
> Subject: delete selected folder leaves empty dir on disk
> Date: Wed, 08 Jan 2003 13:26:24 -0500
> From: Christopher Schanzle <schanzle at nist.gov>
> To: info-cyrus at andrew.cmu.edu
>
>
>
> This isn't a huge problem, but it would be nice to get cleaned up if possible.
>
> Occasionally we have discovered empty directories in a user's spool area.
> Empty means no cyrus.* files, or messages.  They are not in the mailbox.db as a
> current mailbox.  I have discovered that if the folder to delete is first
> selected, all files are removed (including cyrus.*), it is removed from the
> mailbox db, but the (empty) directory remains on disk.
>
> I've also duplicated this by just telnetting to the imap port, created a
> folder, selected it, then deleted it.  The directory remained.
>
> What I have found is the directory does not remain if the folder is not
> selected before the delete.  Here's a log of the one that leaves a directory:
>
> ---------- schanzle Wed Jan  8 12:38:34 2003
>
> <1042047514<2 select "INBOX.newfolder"
>  >1042047514>* FLAGS (\Answered \Flagged \Draft \Deleted \Seen)
> * OK [PERMANENTFLAGS (\Answered \Flagged \Draft \Deleted \Seen \*)]
> * 0 EXISTS
> * 0 RECENT
> * OK [UIDVALIDITY 1042047507]
> * OK [UIDNEXT 1]
> 2 OK [READ-WRITE] Completed
> <1042047514<3 getacl "INBOX.newfolder"
>  >1042047514>* ACL INBOX.newfolder schanzle lrswipcda cyrusadm lrswipcda anyone
> p3 OK Completed
> <1042048046<4 list "" "INBOX.newfolder.*"
>  >1042048046>4 OK Completed (0.000 secs 1 calls)
> <1042048046<5 close
>  >1042048046>5 OK Completed
> <1042048046<6 delete "INBOX.newfolder"
>  >1042048047>6 OK Completed
> <1042048047<7 unsubscribe "INBOX.newfolder"
>  >1042048047>7 OK Completed
> <1042048076<8 logout
>  >1042048076>* BYE LOGOUT received
> 8 OK Completed
>
>
> Log of one that does NOT leave a directory (never selected):
>
> ---------- schanzle Wed Jan  8 12:52:33 2003
>
> <1042048353<2 list "" "INBOX.foobar.*"
>  >1042048353>2 OK Completed (0.000 secs 1 calls)
> <1042048353<3 delete "INBOX.foobar"
>  >1042048353>3 OK Completed
> <1042048353<4 unsubscribe "INBOX.foobar"
>  >1042048353>4 OK Completed
> <1042048371<5 logout
>  >1042048371>* BYE LOGOUT received
> 5 OK Completed
>
>
> name       : Cyrus IMAPD
> version    : v2.1.11 2002/12/04 14:53:12
> vendor     : Project Cyrus
> support-url: http://asg.web.cmu.edu/cyrus
> os         : SunOS
> os-version : 5.8
> environment: Cyrus SASL 2.1.10
>               Sleepycat Software: Berkeley DB 4.1.24: (September 13, 2002)
>               CMU Sieve 2.2
>               TCP Wrappers
>               mmap = shared
>               lock = fcntl
>               nonblock = fcntl
>               auth = unix
>               idle = idled
>               dirhash = full
>               mboxlist.db = skiplist
>               subs.db = flat
>               seen.db = skiplist
>               duplicate.db = db3-nosync
>               tls.db = db3-nosync
>
>
>
>

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper





More information about the Info-cyrus mailing list