nmh-workers
[Top] [All Lists]

[Nmh-workers] possibly missing fix in RC2

2003-09-12 18:30:09
in december of 2001 i posted to comp.mail.mh about a bug with
unseen sequences, in previously empty folders.  the symptom was
that if you've deleted all the mail from a folder, and then inc
new mail into that folder, the unseen sequence remains empty.

jeff honig responded with a fix, which was posted to the group at
the time.

it's quite possible that the problem has been fixed some other
way, and not mentioned in the changelog, but just in case, here's
the patch.  at the time, i read the inc.c code and determined why,
in fact, this patch was correct.  i'm afraid i can't provide the
analysis anymore.

paul
=---------------------
 paul fox, pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us (arlington, ma, 
where it's 56.3 degrees)

--------

To: Paul Fox <pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us>
Subject: Re: no unseen sequence in recently empty folders 
In-reply-to: Message from Paul Fox 
<pgf(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us> on
             Sat, 08 Dec 2001 09:01:17 
-0500.<13049(_dot_)1007820077(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us> 
References: <13049(_dot_)1007820077(_at_)foxharp(_dot_)boston(_dot_)ma(_dot_)us>
From: Jeffrey C Honig <jch(_at_)eng(_dot_)bsdi(_dot_)com>
Organization: Wind River Systems; Trumansburg, NY  USA
X-Mailer: mh-e 5.0.92; nmh 1.0.4; Emacs 20.4
Date: Sat, 08 Dec 2001 11:24:25 -0500

Try this.

Thanks.

Jeff

Index: uip/inc.c
===================================================================
RCS file: /master/contrib/nmh/uip/inc.c,v
retrieving revision 1.2
diff -u -r1.2 inc.c
--- uip/inc.c   2001/06/14 18:59:55     1.2
+++ uip/inc.c   2001/12/08 15:08:01
@@ -756,6 +756,7 @@
 
                msgnum++;
                mp->hghmsg++;
+               mp->nummsg++;
                clear_msg_flags (mp, msgnum);
                set_exists (mp, msgnum);
                set_unseen (mp, msgnum);


_______________________________________________
Nmh-workers mailing list
Nmh-workers(_at_)nongnu(_dot_)org
http://mail.nongnu.org/mailman/listinfo/nmh-workers

<Prev in Thread] Current Thread [Next in Thread>