RMM(1mh)
π RMM β bestie edition π
okay so this is rmm, from the nmh manual page, and it's literally the "remove nmh messages" girlie. she deletes your mail. that's the whole vibe. let's get into it π
β¨ SYNOPSIS β¨
rmm [-help] [-version] [+folder] [msgs] [-unlink | -nounlink] [-rmmproc
program] [-normmproc]
that's a lot of brackets bestie, but it's giving "here's everything you could possibly want" and honestly? iconic.
π¦ DESCRIPTION π¦
so by default, rmm removes the messages you asked for by renaming each message file with a site-dependent prefix (usually a comma, no cap). which means those files are lowkey still sitting there and will 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 like... check with your system administrator, fr fr. π«Ά
alternately, if you want rmm to actually remove the files representing these messages, you can use the -unlink switch. but β οΈ messages removed by this method cannot be later recovered. that's it, gone, no takebacks, the vibes are permanent. π
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. the -rmmproc switch may be used to override this profile component. and the -normmproc switch disables the use of any rmmproc profile component and negates all prior -rmmproc switches. she said no rmmproc today. β¨
an example of a rmmproc script that saves a message based in its Message-ID is provided in /usr/share/doc/nmh/examples/rmmproc.messageid. to enable it, simply add an rmmproc component that names it, to your profile. it's giving plug and play, we love that for us. π
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. that's the csh girlies doing their own little system and honestly, main character energy. π
the current message is not changed by rmm, so a next will advance to the next message in the folder as expected. no chaos, no surprises, just smooth sailing. π
πΈ 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 β
π DEFAULTS π
+folderdefaults to the current foldermsgsdefaults tocur-nounlink
like, she's not going to nuke your files unless you explicitly ask her to. consent queen. π«Ά
π§ CONTEXT π§
If a folder is given, it will become the current folder.
π BUGS π
since rmm and refile use your rmmproc to delete the message, the rmmproc must not call rmm or refile without specifying -normmproc, or you will create an infinite loop. bestie. BESTIE. that's a recursion trap and it will eat your terminal alive. do not do it. π
and that's the whole page!! this one came from nmh-1.8, dated 2013-03-19, and it's the RMM(1mh) manual β thanks for reading, ily, go delete some mail responsibly πβ¨
π¦ 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