nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] possibly missing fix in RC2


From: Jeffrey C Honig
Subject: Re: [Nmh-workers] possibly missing fix in RC2
Date: Fri, 12 Sep 2003 22:42:33 -0400

Here is some additional info on this.  Does anyone see any problem with
my checking this in?

Thanks.

Jeff

--- Begin Message --- Subject: nmh 1.0.4: inc not incrementing mp->nummsgs Date: Sat, 08 Dec 2001 12:06:18 -0500
The symptom is that the first ``inc'' into an empty folder will not
update the unseen sequence.  This is because seq_list() will return NULL
if mp->nummsg is zero.

My proposed fix follows.

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);

--- End Message ---
--- Begin Message --- Subject: Re: nmh 1.0.4: inc not incrementing mp->nummsgs Date: Sat, 8 Dec 2001 13:21:45 -0500 Can you provide an example listing of nmh commands that show the problem so it can be verified as fixed after the patch is applied.

Shantonu

On Saturday, December 8, 2001, at 12:06 PM, Jeffrey C Honig wrote:

The symptom is that the first ``inc'' into an empty folder will not
update the unseen sequence.  This is because seq_list() will return NULL
if mp->nummsg is zero.

My proposed fix follows.

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);




--- End Message ---
--- Begin Message --- Subject: Re: nmh 1.0.4: inc not incrementing mp->nummsgs Date: Sat, 08 Dec 2001 15:49:11 -0500
> Can you provide an example listing of nmh commands that show the problem 
> so it can be verified as fixed after the patch is applied.

Assuming that you have a mail message in ``+inbox 1'' and your
.mh_profile contains ``Unseen-Sequence: unseen''.

         folder +test
         rmm all
         inc -file ~/Mail/inbox/1 +test
         scan unseen +test

Thanks.

Jeff

         

--- End Message ---
-- 
Jeffrey C. Honig <address@hidden>
http://www.honig.net/jch
GnuPG ID:14E29E13 <http://www.honig.net/jch/key.shtml>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]