info > rmm(1)

```html

๐Ÿ“– NAME

rmm - remove nmh messages

๐Ÿš€ Quick Reference

Use Case Command Description
๐Ÿ—‘๏ธ Remove default message rmm Remove the default current message in the current folder.
๐Ÿ”ข Remove specific messages rmm 1 2 3 Remove messages 1, 2, and 3 from the current folder.
๐Ÿ“‚ Remove from specific folder rmm +folder Remove the current message from the specified folder.
๐Ÿ’ฅ Force delete (unlink) rmm -unlink Permanently remove the files representing the messages.
๐Ÿ“œ Use custom delete script rmm -rmmproc program Use a specific program to handle the message deletion.
๐Ÿšซ Disable custom script rmm -normmproc Disable any rmmproc profile component.
๐Ÿ“ Move to trash folder alias rmm 'refile +d' Create a shell alias to move messages to a +d folder instead of deleting.
๐Ÿงน Expunge trash folder rm \`mhpath +d all\` Permanently remove messages from the +d folder.

๐Ÿ”– SYNOPSIS

rmm [-help] [-version] [+folder] [msgs] [-unlink | -nounlink] [-rmmproc program] [-normmproc]

๐Ÿ“ DESCRIPTION

By default, rmm will remove the specified messages by renaming each of the message files with a site-dependent prefix (usually a comma). Such files will then 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.

Alternately, if 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.

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. The -normmproc switch disables the use of any rmmproc profile component and negates all prior -rmmproc switches.

An example of a rmmproc script that saves a message based on 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.

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.

The current message is not changed by rmm, so a next will advance to the next message in the folder as expected.

๐Ÿ“ FILES

โš™๏ธ PROFILE COMPONENTS

๐Ÿ“š SEE ALSO

rmf(1)

โš™๏ธ DEFAULTS

๐ŸŒ 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.

nmh-1.7.1 2013-03-19 RMM(1mh)

```
rmm(1)
๐Ÿ“– NAME ๐Ÿš€ Quick Reference ๐Ÿ”– SYNOPSIS ๐Ÿ“ DESCRIPTION ๐Ÿ“ FILES โš™๏ธ PROFILE COMPONENTS ๐Ÿ“š SEE ALSO โš™๏ธ DEFAULTS ๐ŸŒ CONTEXT ๐Ÿ› BUGS

Generated by phpman v4.9.26-1-g511901d Author: Che Dong Under GNU General Public License
2026-08-08 16:13 @216.73.216.150
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format