Re: iPhone Mbox Corruption

Chuck Swiger <[email protected]> Thu, 29 Jul 2010 11:24:07 -0700
Newsgroups gmane.mail.imap.uw.c-client
Message-ID <[email protected]>
On Jul 29, 2010, at 9:16 AM, Neal Morgan wrote:
> I saw a similar thread in the archive a few years back - but didn't see a post indicating the resolution.

If it was Solaris + imapd-2007 + mbox, that was me.  :-)  The issue was never entirely resolved, although the patch Mark suggested seemed to help somewhat, which was something like (modulo line # fuzz):

--- imapd.c~	2010-07-29 10:55:17.000000000 -0700
+++ imapd.c	2010-07-29 10:55:49.000000000 -0700
@@ -100,8 +100,5 @@
  if (setjmp (jmpenv)) {	/* die if a signal handler say so */
 				/* in case we get borked now */
    if (setjmp (jmpenv)) _exit (1);
-				/* need to close stream gracefully? */
-   if (stream && !stream->lock && (stream->dtb->flags & DR_XPOINT))
-     stream = mail_close (stream);
    ret = 1;			/* set exit status */
  }

Over the longer term we ended up switching over to Dovecot + Maildir, but I'd still buy MRC a $BEVERAGE for UW-IMAP...

Regards,