[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 4

rmm Command


Removes messages from active status.


rmm [ + Folder ] [ Messages ]


The rmm command removes messages from active status by renaming them. To rename a message, the system prefaces the current message number with a , (comma). Inactive files are unavailable to the Message Handler (MH) package. However, system commands can still manipulate inactive files.

The rmm command does not change the current message.

Inactive messages should be deleted periodically. An entry can be placed in your crontab file to automatically delete all files beginning with a comma.


+Folder Specifies the folder containing the messages to rename.
Messages Specifies the messages to rename. You can specify several messages, a range of messages, or a single message. Use the following references to specify a message:
Number of the message
A group of messages specified by the user. Recognized values include:
All messages in a folder
cur or . (dot)
Current message. This is the default.
First message in a folder
Last message in a folder
Message following the current message
Message preceding the current message
-help Lists the command syntax, available switches (toggles), and version information.
For MH, the name of this flag must be fully spelled out.


  1. To remove the current message in the current folder, enter:

  2. To remove messages 2 through 5 from the sales folder, enter:
    rmm +sales 2-5

Profile Entries

The following entries are entered in the UserMhDirectory/.mh_profile:

Current-Folder: Sets the default current folder.
Path: Specifies the UserMhDirectory.
rmmproc: Specifies the program used to remove messages from a folder.


$HOME/.mh_profile Contains the MH user profile.
/usr/bin/rmm Contains the rmm command.

Related Information

The crontab command, rmf command.

The .mh_alias file format, .mh_profile file format.

Mail Overview in AIX 5L Version 5.2 System User's Guide: Communications and Networks.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]