rmm (1) - Linux Man Pages
rmm: remove messages
rmm - remove messages
- rmm [+folder] [msgs] [-unlink | -nounlink] [-rmmproc program] [-normmproc] [-version] [-help]
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
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 in its Message-ID is provided in /etc/nmh/rmmproc.messageid. To enable it, simply add a 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.
^$HOME/.mh_profile~^The user profile
^Path:~^To determine the user's nmh directory ^Current-Folder:~^To find the default current folder ^rmmproc:~^Program to delete the message
`+folder' defaults to the current folder `msgs' defaults to cur `-nounlink'
CONTEXTIf a folder is given, it will become the current folder.
BUGSSince 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.