pick: add -nosequence command line switch
authorPaul Fox <pgf@foxharp.boston.ma.us>
Thu, 6 Dec 2012 02:47:12 +0000 (21:47 -0500)
committerPaul Fox <pgf@foxharp.boston.ma.us>
Thu, 6 Dec 2012 02:49:39 +0000 (21:49 -0500)
man/pick.man
uip/pick.c

index fe0ddf4..fd5072c 100644 (file)
@@ -42,6 +42,7 @@ pick \- search for messages by content
 .RB [ \-sequence
 .I name
 \&...]
+.RB [ \-nosequence ]
 .RB [ \-public " | " \-nopublic ]
 .RB [ \-zero " | " \-nozero ]
 .RB [ \-list " | " \-nolist ] 
@@ -259,9 +260,14 @@ pick\0\-from\0frated\0\-seq\0fred
 defines a new message sequence for the current folder called
 \*(lqfred\*(rq which contains exactly those messages that were selected.
 .PP
+The
+.B \-nosequence
+switch will disable all previously named sequences, allowing
+those established by a profile component to be overridden.
+.PP
 By default,
 .B pick
-will zero the sequence before adding it.  This
+will zero a sequence before adding it.  This
 action can be disabled with the
 .B \-nozero
 switch, which means that the
index fb63111..6f450af 100644 (file)
@@ -45,21 +45,23 @@ static struct swit switches[] = {
     { "datefield field", 5 },
 #define        SEQSW                  15
     { "sequence name", 0 },
-#define        PUBLSW                 16
+#define        NSEQSW                 16
+    { "nosequence", 0 },
+#define        PUBLSW                 17
     { "public", 0 },
-#define        NPUBLSW                17
+#define        NPUBLSW                18
     { "nopublic", 0 },
-#define        ZEROSW                 18
+#define        ZEROSW                 19
     { "zero", 0 },
-#define        NZEROSW                19
+#define        NZEROSW                20
     { "nozero", 0 },
-#define        LISTSW                 20
+#define        LISTSW                 21
     { "list", 0 },
-#define        NLISTSW                21
+#define        NLISTSW                22
     { "nolist", 0 },
-#define VERSIONSW              22
+#define VERSIONSW              23
     { "version", 0 },
-#define        HELPSW                 23
+#define        HELPSW                 24
     { "help", 0 },
     { NULL, 0 }
 };
@@ -158,6 +160,9 @@ main (int argc, char **argv)
 
                seqs[seqp++] = cp;
                continue;
+           case NSEQSW:
+               seqp = 0;
+               continue;
            case PUBLSW: 
                publicsw = 1;
                continue;