ANNO(1mh)
π ANNO β annotate nmh messages π
okay bestie, so this is anno, aka the little glow-up tool for your nmh messages β¨ It's from the 1mh manual section, and it does exactly what it says on the tin: it annotates your messages. No cap.
πΈ SYNOPSIS πΈ
anno [-help] [-version] [+folder] [msgs] [-component field] [-inplace |
-noinplace] [-date | -nodate] [-draft] [-append] [-list] [-delete]
[-number [num|all]] [-preserve | -nopreserve] [-text body]
π¦ DESCRIPTION π¦
So anno messes with header fields (or, like, annotations) in messages. A header field is made up of a field name plus an optional field body, as defined by RFC 2822. The -component switch is how you say the field name, and the -text switch is how you say the field body. π
The messages it works on are either the msgs in the folder you named, or the draft β but only if you invoke it with the -draft switch. iykyk.
Normally, the annotating is done for you by dist, forw, and repl, if you hand them the -anno switch. That's how you keep track of your distribution of, forwarding of, and replies to a message. so organized of you π
But with anno itself, you can do arbitrary annotations of your own. Every message you select gets annotated with the lines:
field: date
field: body
The -nodate switch shuts the date annotation down, leaving only the body annotation. no date, no drama.
By default, anno prepends the annotations to the message. They get appended instead if you pass -append. π₯
If you don't specify a -component field when you invoke anno, it will literally prompt you for a field name. It's asking, bestie.
Heads up: the field you specify must be a valid RFC 2822-style message field name β only alphanumeric characters and dashes. Periodt. The body can be arbitrary text, anything goes.
Normally anno does the annotation in place, so that any links to the message stay intact. You can change that with the -noinplace switch. π
The -list switch produces a listing of the field bodies for header fields whose names match the specified component, one per line. That listing is numbered, starting at 1, if -number is also used. A tab character separates the number and the field body. The field body is treated as if it is a file name, and only the final path name component is listed. The complete field body is listed if the -text switch is used β and yes, the argument to -text is required here but literally ignored. π
The -delete switch removes header fields from messages. The first header field whose name matches the component is deleted if no other options are specified. If you use -text together with -delete, the first header field whose name matches the component and whose body matches the text gets deleted. That text is treated as if it was a file name: if it begins with a slash, the entire field body must match the text; otherwise just the last path name component of the field body has to match. If you use -number together with -delete, header field number num whose name matches the component is deleted. That number matches the one produced by the -list switch. The special value all works for the number, and it makes all components that match the name get deleted. bye felicia π
By default, anno changes the last-accessed and last-modified times on annotated messages to the time of the annotation. anno preserves the original times if you use the -preserve switch. And a matching -nopreserve switch lets you turn time preservation back off, if it was enabled in the profile. β
π 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 β¨
π DEFAULTS π
+folderβ the current folder.msgsβ the current message.-inplace-date
π«Ά CONTEXT π«Ά
If a folder is given, it becomes the current folder. And the first message annotated becomes the current message. main character energy fr fr π
and that's the whole page, bestie!! this one's from nmh-1.8, dated 2005-12-07, and it's filed under ANNO(1mh). slay, go annotate something π β¨
π¦ where this page comes from
- debian trixie: nmh 1.8-3
- ubuntu noble: nmh 1.8-1build4
- ubuntu questing: nmh 1.8-3
- ubuntu resolute: nmh 1.8-4
- ubuntu stonking: nmh 1.8-4build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms