I get messages like these:

    Invalid UID 000005cf in message 767, rebuilding UIDs

when running a nightly purge program:

>        if (!(ms = mail_open (NULL, argv[1], OP_SHORTCACHE)))
>                return (1);
>
>        if (!ms->nmsgs) {
>                if (verbose)
>                        printf ("%s is empty\n", ms->mailbox);
>                mail_close (ms);
>                return (0);
>        }
>
>        sp = mail_newsearchpgm ();
>        if (sp == NULL) {
>                printf ("Not enough memory for search program\n");
>                mail_close (ms);
>                return (1);
>        }
>
>        if (verbose)
>                printf ("%s has %lu message(s)\n", ms->mailbox, ms->nmsgs);
>        ts = time (NULL);
>        ts -= days_to_keep * 86400;
>        tl = *(localtime (&ts));
>        sp->before = ((((tl.tm_year + 1900) - BASEYEAR) << 9) | ((tl.tm_mon + 
> 1) << 5) | tl.tm_mday);
>        mail_search_full (ms, NULL, sp, SE_NOPREFETCH);
>        mail_free_searchpgm (&sp);
>        for (ix = 1; ix <= ms->nmsgs; ix++) {
>                if (mail_elt (ms, ix)->searched) {
>                        pc++;
>                        snprintf (tmp, sizeof tmp, "%lu", ix);
>                        mail_setflag (ms, tmp, "\\Deleted");
>                }
>        }
>        if (verbose)
>                printf ("%s has %lu message(s) to expunge\n", ms->mailbox, pc);
>        mail_expunge (ms);
>        mail_close (ms);
> 

I don't believe my code is causing the problem, it's shown only to
give some context; using mailutil to move messages between mailboxes
will also produce the errors.

I use mbx mailbox files with procmail->dmail delivery.  I am running
2006d.DEV.SNAP (1127).  It's not the most recent, but I have not seen
any later changes dealing with the mbx driver.

Any ideas on the nature of the problem, or how to collect diagnostic
information?


_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to