1MARK(1)                      [nmh-1.2-20070115cvs]                     MARK(1)
2
3
4

NAME

6       mark - manipulate message sequences
7

SYNOPSIS

9       mark [+folder] [msgs] [-sequence name ...]  [-add | -delete] [-list]
10            [-public | -nopublic] [-zero | -nozero] [-version] [-help]
11

DESCRIPTION

13       The mark command manipulates message sequences by  adding  or  deleting
14       message  numbers  from folder-specific message sequences, or by listing
15       those sequences and messages.
16
17       A message sequence is a keyword, just like one of the  “reserved”  mes‐
18       sage  names,  such as “first” or “next”.  Unlike the “reserved” message
19       names, which have a fixed semantics on a per-folder basis,  the  seman‐
20       tics of a message sequence may be defined, modified, and removed by the
21       user.  Message sequences are folder-specific, e.g., the  sequence  name
22       “seen”  in  the  context  of folder “+inbox” need not have any relation
23       whatsoever to the sequence of the same name in a folder of a  different
24       name.
25
26       Three action switches direct the operation of mark.  These switches are
27       mutually exclusive: the last occurrence of any of  them  overrides  any
28       previous occurrence of the other two.
29
30       The  -add switch tells mark to add messages to sequences or to create a
31       new sequence.  For each sequence named via the -sequence name  argument
32       (which  must  occur  at  least once) the messages named via msgs (which
33       defaults to “cur” if no msgs are given), are  added  to  the  sequence.
34       The  messages to be added need not be absent from the sequence.  If the
35       -zero switch is specified, the sequence will be emptied prior to adding
36       the  messages.   Hence,  -add  -zero means that each sequence should be
37       initialized to the indicated messages, while -add  -nozero  means  that
38       each sequence should be appended to by the indicated messages.
39
40       The -delete switch tells mark to delete messages from sequences, and is
41       the dual of -add.  For each of the named sequences, the named  messages
42       are  removed  from  the  sequence.   These messages need not be already
43       present in the sequence.  If the -zero switch is  specified,  then  all
44       messages  in  the  folder are added to the sequence (first creating the
45       sequence, if necessary) before removing the messages.   Hence,  -delete
46       -zero means that each sequence should contain all messages except those
47       indicated, while -delete -nozero means that only the indicated messages
48       should  be  removed from each sequence.  As expected, the command “mark
49       -sequence foo -delete all” deletes the sequence “foo” from the  current
50       folder.
51
52       When  creating  or  modifying  sequences,  you can specify the switches
53       -public or -nopublic to force the new or modified sequences to be “pub‐
54       lic”  or  “private”.   The  switch -public indicates that the sequences
55       should be made “public”.  These sequences will then be readable by  all
56       nmh  users  with permission to read the relevant folders.  In contrast,
57       the -nopublic switch indicates that the sequences should be made  “pri‐
58       vate”,  and  will  only  be  accessible  by  you.   If neither of these
59       switches is specified, then existing sequences will maintain their cur‐
60       rent  status,  and  new  sequences will default to “public” if you have
61       write permission for the relevant folder.  Check the mh-sequence(5) man
62       page  for  more details about the difference between “public” and “pri‐
63       vate” sequences.
64
65       The -list switch tells mark to list both the sequences defined for  the
66       folder  and  the  messages  associated with those sequences.  Mark will
67       list the name of each sequence given by -sequence name and the messages
68       associated  with  that sequence.  If the sequence is private, this will
69       also be indicated.  If  no  sequence  is  specified  by  the  -sequence
70       switch,  then  all sequences for this folder will be listed.  The -zero
71       switch does not affect the operation of -list.
72
73       The current restrictions on sequences are:
74
75       · The name used to denote a message sequence must consist of an  alpha‐
76         betic character followed by zero or more alphanumeric characters, and
77         cannot be one of the (reserved) message names “new”, “first”, “last”,
78         “all”, “next”, or “prev”.
79
80       · Only a certain number of sequences may be defined for a given folder.
81         This number is usually limited to 26 (10 on small systems).
82
83       · Message ranges with user-defined sequence names are restricted to the
84         form  “name:n”,  “name:+n”,  or  “name:-n”, and refer to the first or
85         last `n' messages of the sequence `name',  respectively.   Constructs
86         of the form “name1-name2” are forbidden for user defined sequences.
87
88

FILES

90       $HOME/.mh_profile          The user profile
91
92

PROFILE COMPONENTS

94       Path:                To determine the user's nmh directory
95       Current-Folder:      To find the default current folder
96
97

SEE ALSO

99       flist(1), pick(1), mh-sequence(5)
100
101

DEFAULTS

103       `+folder' defaults to the current folder
104       `-add' if -sequence is specified, -list otherwise
105       `msgs' defaults to cur (or all if -list is specified)
106       `-nozero'
107
108

CONTEXT

110       If a folder is given, it will become the current folder.
111
112

HELPFUL HINTS

114       Use  flist  to  find  folders with a given sequence, and “pick sequence
115       -list” to enumerate those messages in the sequence (such as for use  by
116       a shell script).
117
118
119
120MH.6.8                            1 Jul 2003                           MARK(1)
Impressum