5 .TH MARK %manext1% "%nmhdate%" MH.6.8 [%nmhversion%]
7 mark \- manipulate message sequences
17 .RB [ \-add " | " \-delete ]
19 .RB [ \-public " | " \-nopublic ]
20 .RB [ \-zero " | " \-nozero ]
27 command manipulates message sequences by adding or deleting
28 message numbers from folder\-specific message sequences, or by listing
29 those sequences and messages.
31 A message sequence is a keyword, just like one of the \*(lqreserved\*(rq
32 message names, such as \*(lqfirst\*(rq or \*(lqnext\*(rq. Unlike the
33 \*(lqreserved\*(rq message names, which have a fixed semantics on
34 a per\-folder basis, the semantics of a message sequence may be
35 defined, modified, and removed by the user. Message sequences are
36 folder\-specific, e.g., the sequence name \*(lqseen\*(rq in the context
38 .RI \*(lq +inbox \*(rq
39 need not have any relation whatsoever to the
40 sequence of the same name in a folder of a different name.
42 Three action switches direct the operation of
45 are mutually exclusive: the last occurrence of any of them overrides
46 any previous occurrence of the other two.
52 to add messages to sequences or to
53 create a new sequence. For each sequence named via the
56 argument (which must occur at least once) the messages named via
58 (which defaults to \*(lqcur\*(rq if no
60 are given), are added to the
61 sequence. The messages to be added need not be absent from the sequence.
64 switch is specified, the sequence will be emptied prior
65 to adding the messages. Hence,
68 means that each sequence
69 should be initialized to the indicated messages, while
72 means that each sequence should be appended to by the indicated messages.
78 to delete messages from sequences, and is the dual of
80 For each of the named sequences, the
81 named messages are removed from the sequence. These messages need
82 not be already present in the sequence. If the
85 specified, then all messages in the folder are added to the sequence
86 (first creating the sequence, if necessary) before removing the messages.
90 means that each sequence should contain
91 all messages except those indicated, while
95 that only the indicated messages should be removed from each sequence.
96 As expected, the command
102 deletes the sequence \*(lqfoo\*(rq from the current folder.
104 When creating or modifying sequences, you can specify the switches
108 to force the new or modified sequences to be
109 \*(lqpublic\*(rq or \*(lqprivate\*(rq. The switch
112 that the sequences should be made \*(lqpublic\*(rq. These sequences
113 will then be readable by all
115 users with permission to read the relevant folders. In contrast, the
117 switch indicates that the
118 sequences should be made \*(lqprivate\*(rq, and will only be accessible by
119 you. If neither of these switches is specified, then existing sequences
120 will maintain their current status, and new sequences will default to
121 \*(lqpublic\*(rq if you have write permission for the relevant folder.
124 man page for more details about the difference
125 between \*(lqpublic\*(rq and \*(lqprivate\*(rq sequences.
131 to list both the sequences defined
132 for the folder and the messages associated with those sequences.
134 will list the name of each sequence given by
137 and the messages associated with that sequence. If the
138 sequence is private, this will also be indicated. If no sequence is
141 switch, then all sequences for this folder
144 switch does not affect the operation of
147 The current restrictions on sequences are:
150 The name used to denote a message sequence must consist of an alphabetic
151 character followed by zero or more alphanumeric characters, and cannot
152 be one of the (reserved) message names \*(lqnew\*(rq, \*(lqfirst\*(rq,
153 \*(lqlast\*(rq, \*(lqall\*(rq, \*(lqnext\*(rq, or \*(lqprev\*(rq.
156 Only a certain number of sequences may be defined for a given folder.
157 This number is usually limited to 26 (10 on small systems).
160 Message ranges with user\-defined sequence names are restricted to the
161 form \*(lqname:n\*(rq, \*(lqname:+n\*(rq, or \*(lqname:-n\*(rq, and refer
162 to the first or last `n' messages of the sequence `name', respectively.
163 Constructs of the form \*(lqname1\-name2\*(rq are forbidden for user
169 .ta \w'%etcdir%/ExtraBigFileName 'u
170 ^$HOME/\&.mh\(ruprofile~^The user profile
173 .SH "PROFILE COMPONENTS"
177 .ta \w'ExtraBigProfileName 'u
178 ^Path:~^To determine the user's nmh directory
179 ^Current\-Folder:~^To find the default current folder
183 flist(1), pick(1), mh-sequence(5)
187 .RB ` +folder "' defaults to the current folder"
188 .RB ` \-add "' if " \-sequence " is specified, " \-list " otherwise"
189 .RB ` msgs "' defaults to cur (or all if " \-list " is specified)"
193 If a folder is given, it will become the current folder.
198 to find folders with a given sequence, and
202 to enumerate those messages in the sequence (such as for
203 use by a shell script).