MARK(1)
๐ธ NAME ๐ธ
mark โ the little icon that manipulates your nmh message sequences ๐ (and yes bestie, this is the General Commands Manual, section 1, we're fancy like that)
โจ SYNOPSIS โจ
mark [-help] [-version] [+folder] [msgs] [-sequence name ...] [-add |
-delete | -list] [-public | -nopublic] [-zero | -nozero] [-empty |
-noempty] [-range | -norange]
๐ฆ DESCRIPTION ๐ฆ
okay so. mark is the girl who keeps your message sequences in check. She does it by adding or deleting message numbers from folder-specific message sequences, or by listing those sequences and messages. That's the whole vibe. ๐
A message sequence is a keyword, just like one of the โreservedโ message names, such as โfirstโ or โnextโ. But here's the tea โ: those reserved names have a fixed semantics on a per-folder basis, whereas the semantics of a message sequence may be defined, modified, and removed by you. Main character energy, honestly. And message sequences are folder-specific โ like, the sequence name โseenโ in the context of folder +inbox need not have any relation whatsoever to the sequence of the same name in a folder of a different name. Different folder, different girl. ๐โโ๏ธ
Three action switches direct the operation of mark. These switches are mutually exclusive: the last occurrence of any of them overrides any previous occurrence of the other two. So don't try to be slick and pass all three, bestie, only the last one shows up to the party. ๐ซถ
-addโ tellsmarkto add messages to sequences or to create a new sequence. For each sequence named via the-sequence nameargument (which must occur at least once) the messages named viamsgs(which defaults to โcurโ if nomsgsare given), are added to the sequence. The messages to be added need not be absent from the sequence. If the-zeroswitch is specified, the sequence will be emptied prior to adding the messages. Hence,-add -zeromeans that each sequence should be initialized to the indicated messages, while-add -nozeromeans that each sequence should be appended to by the indicated messages. The-emptyswitch does not affect the operation of-add.-deleteโ tellsmarkto delete messages from sequences, and is the dual of-add. For each of the named sequences, the named messages are removed from the sequence. These messages need not be already present in the sequence. If the-zeroswitch is specified, then all messages in the folder are added to the sequence (first creating the sequence, if necessary) before removing the messages. Hence,-delete -zeromeans that each sequence should contain all messages except those indicated, while-delete -nozeromeans that only the indicated messages should be removed from each sequence. As expected, the commandmark -sequence foo -delete allempties the sequence โfooโ, and therefore removes that sequence from the current folder's list of sequences. Sequence foo must exist or a โno such sequenceโ error results. This can be avoided by adding-zero:mark -sequence foo -delete -zero allensures sequence foo no longer exists. The-emptyswitch does not affect the operation of-delete.-listโ tellsmarkto list all sequences, and the messages associated with them. The output can be limited to just certain sequences (with-sequenceswitches) and/or messages (withmsgsarguments). Normally,-listwill show all sequences associated with the folder, or all sequences given with-sequence. Using-noemptywill suppress any which would show as empty, whether because they actually are empty, or because they don't include any of the givenmsgs, or because they've been specified with-sequencebut don't exist. (-emptyis the default.) With the default-rangeswitch,markwill compress consecutive runs of message numbers to save space. That is,"3 4 5 6"will be shown as the range"3-6". With-norange, lists will be fully enumerated. The-zeroswitch does not affect the operation of-list.
When creating or modifying sequences, you can specify the switches -public or -nopublic to force the new or modified sequences to be โpublicโ or โprivateโ. The switch -public indicates that the sequences should be made โpublicโ. These sequences will then be readable by all nmh users with permission to read the relevant folders. In contrast, the -nopublic switch indicates that the sequences should be made โprivateโ, and will only be accessible by you. ๐ If neither of these switches is specified, then existing sequences will maintain their current status, and new sequences will default to โpublicโ if you have write permission for the relevant folder. Check mh-sequence(5) for more details about the difference between โpublicโ and โprivateโ sequences.
๐ The restrictions on sequences are ๐
- The name used to denote a message sequence must consist of an alphabetic character followed by zero or more alphanumeric characters, and cannot be one of the (reserved) message names โnewโ, โfirstโ, โlastโ, โallโ, โnextโ, or โprevโ.
- Message ranges with user-defined sequence names are restricted to the form โname:nโ, โname:+nโ, or โname:-nโ, and refer to the first or last
n' messages of the sequencename'. If=is substituted for:, these forms will instead refer to single messages positionednaway from one end or the other of the sequence. Constructs of the form โname1-name2โ are forbidden for user defined sequences. ๐
๐๏ธ FILES ๐๏ธ
$HOME/.mh_profileโ The user's profile.
โญ PROFILE COMPONENTS โญ
Path:โ To determine the user's nmh directory.Current-Folder:โ To find the default current folder.
๐ SEE ALSO ๐
flist(1), pick(1), mh-sequence(5)
๐ DEFAULTS ๐
+folderโ The current folder.-addโ If-sequenceis specified,-listotherwise.msgsโ The current message, or all if-listis specified.-nozero
๐ CONTEXT ๐
If a folder is given, it will become the current folder.
๐ฅ HELPFUL HINTS ๐ฅ
Use flist to find folders with a given sequence, and pick sequence -list to enumerate those messages in the sequence (such as for use by a shell script).
okay that's the whole page, you ate that bestie ๐ซถ this was nmh-1.8, dated 2021-05-01, and honestly? iconic. periodt. ๐ โจ
๐ฆ where this page comes from
- alpine 3.24: nmh-doc 1.8-r3 ยท BSD-3-Clause
- epel 10: nmh 1.8-3.el10_1 ยท BSD
- epel 9: nmh 1.8-1.el9 ยท BSD
- fedora 43: nmh 1.8-9.fc43 ยท LicenseRef-Callaway-BSD
- fedora 44: nmh 1.8-10.fc44 ยท LicenseRef-Callaway-BSD
- nixos 26.05: nmh 1.8
- nixpkgs unstable: nmh 1.8
- opensuse-leap 16.0: nmh 1.8-bp160.1.13 ยท BSD-3-Clause
- opensuse-leap 16.0: nmh 1.8-bp160.1.13 ยท BSD-3-Clause
- opensuse-leap 16.0: nmh 1.8-bp160.1.13 ยท BSD-3-Clause
- opensuse-leap 16.0: nmh 1.8-bp160.1.13 ยท BSD-3-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms