RMM(1)
πΈ RMM(1) β the "remove nmh messages" page, bestie edition πΈ
okay so you wanna know about rmm from the General Commands Manual?? say less. this is remove nmh messages, and it's about to be your new fave. π
β¨ NAME β¨
rmm β remove nmh messages. that's it, that's the whole name. iconic brevity. π
β¨ SYNOPSIS β¨
rmm [-help] [-version] [+folder] [msgs] [-unlink | -nounlink] [-rmmproc
program] [-normmproc]
look at her. so much range. π
β¨ DESCRIPTION β¨
so by default, rmm does not actually delete anything β it removes the messages you asked for by renaming each of the message files with a site-dependent prefix (usually a comma π«Ά). which means those files are still chillin' there, and they're gonna need to be removed in some manner after a period of time. many sites arrange for cron to remove these files once a day, so check with your system administrator β like, actually check, bestie, don't just assume. π
alternately, if you're feeling brave and you wish for rmm to really remove the files representing these messages, you can use the -unlink switch.
but messages removed by this method cannot be later recovered. π that's not a vibe check, that's a warning. gone is gone, no cap.
if you prefer a more sophisticated method of removing messages, you can define the rmmproc profile component. for example, you can add a profile component such as
rmmproc: /home/foouser/bin/rmm_msgs
then instead of simply renaming the message file, rmm will call the named program or script to handle the files that represent the messages to be deleted. and the -rmmproc switch may be used to override this profile component. β¨
meanwhile the -normmproc switch disables the use of any rmmproc profile component and negates all prior -rmmproc switches. it's giving "reset the timeline." π
an example of a rmmproc script that saves a message based in its Message-ID is provided in /etc/nmh/rmmproc.messageid. to enable it, simply add an rmmproc component that names it, to your profile. she's pre-written, she's ready, she's lowkey a gift. π
some users of csh prefer the following:
alias rmm 'refile +d'
where folder +d is a folder for deleted messages, and
alias mexp 'rm `mhpath +d all`'
is used to βexpungeβ deleted messages. very main character energy. π
and one more thing bestie, super important: the current message is not changed by rmm, so a next will advance to the next message in the folder as expected. no surprise jumps, we love consistency. π¦
β¨ FILES β¨
$HOME/.mh_profileβ The user profile
β¨ PROFILE COMPONENTS β¨
Path:β To determine the user's nmh directoryCurrent-Folder:β To find the default current folderrmmproc:β Program to delete the message
β¨ SEE ALSO β¨
go read that one too, fr fr. π
β¨ DEFAULTS β¨
+folderdefaults to the current foldermsgsdefaults tocur-nounlink
β¨ CONTEXT β¨
If a folder is given, it will become the current folder. periodt. π
β¨ BUGS β¨
π¨ okay this one is the real tea: sincermmandrefileuse yourrmmprocto delete the message, thermmprocmust not callrmmorrefilewithout specifying-normmproc, or you will create an infinite loop. π
and that's not a cute little loop-de-loop, that's an actual infinite loop. do not do this. i'm begging. π
and that's the whole page, bestie!! this was nmh-1.8, dated 2013-03-19 β so go forth, rename those message files, and slay. π«Άβ¨π
π¦ 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
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms