nmh-commits
[Top][All Lists]
Advanced

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

[Nmh-commits] nmh ChangeLog uip/pick.c


From: Eric Gillespie
Subject: [Nmh-commits] nmh ChangeLog uip/pick.c
Date: Thu, 14 Aug 2008 01:31:11 +0000

CVSROOT:        /sources/nmh
Module name:    nmh
Changes by:     Eric Gillespie <epg>    08/08/14 01:31:11

Modified files:
        .              : ChangeLog 
        uip            : pick.c 

Log message:
                * uip/pick.c: Ensure valid sequence name as soon as we parse it 
from
                command, instead of searching the messages first.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/nmh/ChangeLog?cvsroot=nmh&r1=1.293&r2=1.294
http://cvs.savannah.gnu.org/viewcvs/nmh/uip/pick.c?cvsroot=nmh&r1=1.14&r2=1.15

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/nmh/nmh/ChangeLog,v
retrieving revision 1.293
retrieving revision 1.294
diff -u -b -r1.293 -r1.294
--- ChangeLog   14 Aug 2008 01:28:56 -0000      1.293
+++ ChangeLog   14 Aug 2008 01:31:11 -0000      1.294
@@ -2,6 +2,8 @@
 
        * uip/pick.c: Print matching messages immediately, instead of
        waiting until the very end to print anything.
+       Ensure valid sequence name as soon as we parse it from command,
+       instead of searching the messages first.
 
 2008-08-13  Eric Gillespie  <address@hidden>
 

Index: uip/pick.c
===================================================================
RCS file: /sources/nmh/nmh/uip/pick.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- uip/pick.c  14 Aug 2008 01:28:56 -0000      1.14
+++ uip/pick.c  14 Aug 2008 01:31:11 -0000      1.15
@@ -2,7 +2,7 @@
 /*
  * pick.c -- search for messages by content
  *
- * $Id: pick.c,v 1.14 2008/08/14 01:28:56 epg Exp $
+ * $Id: pick.c,v 1.15 2008/08/14 01:31:11 epg Exp $
  *
  * This code is Copyright (c) 2002, 2008, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -153,6 +153,10 @@
                /* check if too many sequences specified */
                if (seqp >= NUMATTRS)
                    adios (NULL, "too many sequences (more than %d) specified", 
NUMATTRS);
+
+                if (!seq_nameok (cp))
+                  done (1);
+
                seqs[seqp++] = cp;
                continue;
            case PUBLSW: 




reply via email to

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