Folder deletion did not remove files from disc

Ken Murchison murch at andrew.cmu.edu
Thu Aug 2 09:48:38 EDT 2007


Tim Bannister wrote:
> Recently we saw what we hope is a one-off error on our Cyrus deployment
> here. This is Cyrus 2.3.7 on x86_64 RHEL4 based on Simon Matter's RPMs.
> I'd used IMAP as "cyrus" to delete a number of users. This is done using
> some rather old code:
>     # Change ACL for mailbox to be deleted
> 
>     $err = $imap->set_acl("user.$username", "cyrus", "lrswipdca");
>     if ($err != 0) {
>         print "$imap->{'Error'}\n";
>     }
> 
>     # Delete mailbox
> 
>     $err = $imap->delete("user.$username");
>     if ($err != 0) {
>         print "$imap->{'Error'}\n";
>     }
> 
> All these mailboxes disappeared from the output of "ctl_mboxlist -d" as
> I'd expect, but some remained on the filesystem. I didn't see a pattern
> to which these were.
> 
> I'd like to know if anyone has seen this before and any suggestions for
> a cause / remedy. I have NOT been able to replicate the problem myself
> but it is nevertheless a cause for some concern.

I have seen this when a process has the mailbox opened at the time of 
the delete.


-- 
Kenneth Murchison
Systems Programmer
Project Cyrus Developer/Maintainer
Carnegie Mellon University


More information about the Info-cyrus mailing list