On Mon, 18 Dec 2006 14:27:12 -0500, "Wesley Craig" <[EMAIL PROTECTED]> said:
> I've seen this behavior (and resolution) as well.  Not sure what the  
> cause is.
> 
> :wes
> 
> On 18 Dec 2006, at 12:06, Joseph Brennan wrote:
> > Earlier I wrote:
> >> cyr_expire has started failing with this error:
> >>
> >>   cyr_expire[4729]: IOERROR: bboard zero index/expunge record 4/1591
> >
> > D'oh.  I did "reconstruct bboard" and that fixed whatever it was.
> >
> > But this was repeatedly stopping cyr_expire from continuing.  It is
> > now running through all of the mailboxes it had missed since bboard  
> > got
> > corrupted.

Attached is a patch we apply at FastMail (I really should mail the
list with our full patch list again some time)...

While this doesn't solve the underlying problem, it does stop a single
corrupted mailbox from killing the entire cyr_expire run!

Regards,

Bron.
-- 
  Bron Gondwana
  [EMAIL PROTECTED]

diff -ur --new-file cyrus-imapd-2.3.3.orig/imap/cyr_expire.c cyrus-imapd-2.3.3/imap/cyr_expire.c
--- cyrus-imapd-2.3.3.orig/imap/cyr_expire.c	2005-12-15 08:21:16.000000000 -0500
+++ cyrus-imapd-2.3.3/imap/cyr_expire.c	2006-05-22 01:52:12.000000000 -0400
@@ -225,7 +225,9 @@
 	mailbox_close(&mailbox);
     }
 
-    return r;
+    /* Even if we had a problem with one mailbox, keep going
+     * with all other mailboxes. */
+    return 0;
 }
 
 int main(int argc, char *argv[])
----
Cyrus Home Page: http://cyrusimap.web.cmu.edu/
Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

Reply via email to