> From:  Brent Welch <welch@panasas.com>
> Date:  Thu, 18 Jul 2002 08:13:53 -0700
>
> Unfortunately, an unattributed patch may or may not be a contributed patch
> as I'm not always good about recording the source of a patch.  I suspect
> this patch may have been contributed from someone that uses the
> auto-pack or auto-sort features, which I don't use.  This change should be
> tested against those features.
>
> This whole folder scanning area is super delicate, as Chris is discovering.
> I wish I had a little more time right now to wrap my head around the issues
> .
> It is good that another pair of eyes is looking at the code, and I hope I
> left some clues in the comments about why things are being done.  If we
> do change things, or remove calls, we may want to leave a note that says
>
> # Used to be a Scan_Folder call here, but it was removed for the
> # following reason...
Unfortunately, there are few comments in this part of the code.  I haven't
been helping that situation much, although there are some comments in the new
sequence stuff that I wrote.  I have cleaned up a bit of code so that
it's a little more clear what it's doing and a little less delicate.  I also
gratuitously renamed some variables for clarity.
My last few bug fixes were purely problems that I created in my own
patches and I can't blame anyone but myself.
As I'm avoiding real work, I may clean up a little bit more (and probably
break a few things as well ;-).
Chris
--
Chris Garrigues                 http://www.DeepEddy.Com/~cwg/
virCIO                          http://www.virCIO.Com
716 Congress, Suite 200
Austin, TX  78701		+1 512 374 0500
World War III:  The Wrong-Doers Vs. the Evil-Doers.

from localhost (localhost [127.0.0.1])
	by phobos.labs.netnoteinc.com (Postfix) with ESMTP id B4737440C8
	for <jm@localhost>; Mon, 22 Jul 2002 17:46:00 -0400 (EDT)
from dogma.slashnull.org [212.17.35.15]
	by localhost with IMAP (fetchmail-5.9.0)
	for jm@localhost (single-drop); Mon, 22 Jul 2002 22:46:00 +0100 (IST)
from listman.spamassassin.taint.org (listman.spamassassin.taint.org [66.187.233.211]) by
    dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g6MLiW401386 for
    <jm-exmh@jmason.org>; Mon, 22 Jul 2002 22:44:32 +0100
from listman.spamassassin.taint.org (localhost.localdomain [127.0.0.1]) by
    listman.redhat.com (Postfix) with ESMTP id 086A43F9BB; Mon, 22 Jul 2002
    17:40:04 -0400 (EDT)
from int-mx1.corp.spamassassin.taint.org (int-mx1.corp.spamassassin.taint.org
    [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id B171B3F93C
    for <exmh-workers@listman.redhat.com>; Mon, 22 Jul 2002 17:32:58 -0400
    (EDT)
(from mail@localhost) by int-mx1.corp.spamassassin.taint.org (8.11.6/8.11.6)
    id g6MLWx213200 for exmh-workers@listman.redhat.com; Mon, 22 Jul 2002
    17:32:59 -0400
from mx1.spamassassin.taint.org (mx1.spamassassin.taint.org [172.16.48.31]) by
    int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g6MLWwR13196 for
    <exmh-workers@redhat.com>; Mon, 22 Jul 2002 17:32:58 -0400
from austin-jump.vircio.com
    (IDENT:J9za5Dz4xkUw76rkDnoSfMp5d5TuY5UB@jump-austin.vircio.com
    [192.12.3.99]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g6MLLRs16910
    for <exmh-workers@redhat.com>; Mon, 22 Jul 2002 17:21:27 -0400
from cwg-exmh@DeepEddy.Com by localhost.localdomain with
    qmail-scanner-0.90 (uvscan: v4.1.60/v4213. . Clean. Processed in 0.842216
    secs); 22/07/2002 16:32:57
from deepeddy.vircio.com (@[10.1.2.1]) (envelope-sender
    <cwg-exmh@DeepEddy.Com>) by austin-jump.vircio.com (qmail-ldap-1.03) with
    SMTP for <exmh-workers@redhat.com>; 22 Jul 2002 21:32:57 -0000
from localhost (HELO deepeddy.vircio.com)
    (?+pLzqKCsj+aActJA3EHH2mj2mJFTKBPh?@[127.0.0.1]) (envelope-sender
    <cwg-exmh@DeepEddy.Com>) by localhost (qmail-ldap-1.03) with SMTP for
    <exmh-workers@redhat.com>; 22 Jul 2002 21:32:53 -0000
From exmh-workers-admin@redhat.com  Mon Jul 22 22:46:01 2002