From 0efed4aeae3da19a30394dd79c3aee89c42de521 Mon Sep 17 00:00:00 2001 From: Paul Fox Date: Wed, 5 Dec 2012 21:47:12 -0500 Subject: [PATCH] pick: add -nosequence command line switch --- man/pick.man | 8 +++++++- uip/pick.c | 21 +++++++++++++-------- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/man/pick.man b/man/pick.man index fe0ddf4..fd5072c 100644 --- a/man/pick.man +++ b/man/pick.man @@ -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 diff --git a/uip/pick.c b/uip/pick.c index fb63111..6f450af 100644 --- a/uip/pick.c +++ b/uip/pick.c @@ -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; -- 1.7.10.4