MARK(1)

๐Ÿ“ฆ
version 1.8 ยท 4 versions
, in alpine 3.24, epel 10, epel 9, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

๐ŸŒธ 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 โ€” tells mark to add messages to sequences or to create a new sequence. For each sequence named via the -sequence name argument (which must occur at least once) the messages named via msgs (which defaults to โ€œcurโ€ if no msgs are given), are added to the sequence. The messages to be added need not be absent from the sequence. If the -zero switch is specified, the sequence will be emptied prior to adding the messages. Hence, -add -zero means that each sequence should be initialized to the indicated messages, while -add -nozero means that each sequence should be appended to by the indicated messages. The -empty switch does not affect the operation of -add.
  • -delete โ€” tells mark to 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 -zero switch 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 -zero means that each sequence should contain all messages except those indicated, while -delete -nozero means that only the indicated messages should be removed from each sequence. As expected, the command mark -sequence foo -delete all empties 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 all ensures sequence foo no longer exists. The -empty switch does not affect the operation of -delete.
  • -list โ€” tells mark to list all sequences, and the messages associated with them. The output can be limited to just certain sequences (with -sequence switches) and/or messages (with msgs arguments). Normally, -list will show all sequences associated with the folder, or all sequences given with -sequence. Using -noempty will suppress any which would show as empty, whether because they actually are empty, or because they don't include any of the given msgs, or because they've been specified with -sequence but don't exist. (-empty is the default.) With the default -range switch, mark will 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 -zero switch 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 sequence name'. If = is substituted for :, these forms will instead refer to single messages positioned n away 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 -sequence is specified, -list otherwise.
  • msgs โ€” The current message, or all if -list is 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