rmm Command

Purpose

Removes messages from active status.

Syntax

rmm [ + Folder ] [ Messages ]

Description

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.
Note: 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.

Flags

Item Description
+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
Number of the message
Sequence
A group of messages specified by the user. Recognized values include:
all
All messages in a folder
cur or . (dot)
Current message. This is the default.
first
First message in a folder
last
Last message in a folder
next
Message following the current message
prev
Message preceding the current message
 
-help Lists the command syntax, available switches (toggles), and version information.
Note: For MH, the name of this flag must be fully spelled out.

Security

Attention RBAC users and Trusted AIX® users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

Examples

  1. To remove the current message in the current folder, enter:
    rmm
  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:

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

Files

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