1RMM(1) General Commands Manual RMM(1)
2
3
4
6 rmm - remove nmh messages
7
9 rmm [-help] [-version] [+folder] [msgs] [-unlink | -nounlink] [-rmmproc
10 program] [-normmproc]
11
13 By default, rmm will remove the specified messages by renaming each of
14 the message files with a site-dependent prefix (usually a comma). Such
15 files will then need to be removed in some manner after a period of
16 time. Many sites arrange for cron to remove these files once a day, so
17 check with your system administrator.
18
19 Alternately, if you wish for rmm to really remove the files represent‐
20 ing these messages, you can use the -unlink switch. But messages
21 removed by this method cannot be later recovered.
22
23 If you prefer a more sophisticated method of `removing' messages, you
24 can define the rmmproc profile component. For example, you can add a
25 profile component such as
26
27 rmmproc: /home/foouser/bin/rmm_msgs
28
29 Then instead of simply renaming the message file, rmm will call the
30 named program or script to handle the files that represent the messages
31 to be deleted. The -rmmproc switch may be used to override this pro‐
32 file component. The -normmproc switch disables the use of any rmmproc
33 profile component and negates all prior -rmmproc switches.
34
35 An example of a rmmproc script that saves a message based in its Mes‐
36 sage-ID is provided in /etc/nmh/rmmproc.messageid. To enable it, sim‐
37 ply add an rmmproc component that names it, to your profile.
38
39 Some users of csh prefer the following:
40
41 alias rmm 'refile +d'
42
43 where folder `+d' is a folder for deleted messages, and
44
45 alias mexp 'rm `mhpath +d all`'
46
47 is used to “expunge” deleted messages.
48
49 The current message is not changed by rmm, so a next will advance to
50 the next message in the folder as expected.
51
53 $HOME/.mh_profile The user profile
54
56 Path: To determine the user's nmh directory
57 Current-Folder: To find the default current folder
58 rmmproc: Program to delete the message
59
61 rmf(1)
62
64 `+folder' defaults to the current folder
65 `msgs' defaults to cur
66 `-nounlink'
67
69 If a folder is given, it will become the current folder.
70
72 Since rmm and refile use your rmmproc to delete the message, the rmm‐
73 proc must not call rmm or refile without specifying -normmproc, or you
74 will create an infinite loop.
75
76
77
78nmh-1.7.1 2013-03-19 RMM(1)