RMM(1mh)

πŸ“¦
version 1.8 Β· 4 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 directory
  • Current-Folder: β€” To find the default current folder
  • rmmproc: β€” Program to delete the message

⭐ SEE ALSO ⭐


πŸ“ DEFAULTS πŸ“

  • +folder defaults to the current folder
  • msgs defaults to cur
  • -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