Removes folders and the messages they contain.
rmf [ +Folder ] [ -interactive | -nointeractive ]
The rmf command deletes the messages within the specified folder and then deletes the folder. By default, the rmf command confirms your request before deleting a folder. If the folder contains files that are not messages, the rmf command does not delete the files and returns an error.
Attention: The rmf command irreversibly deletes messages that do not have other links.
By default, the rmf command removes the current folder. When the current folder is removed, inbox becomes the current folder. If the +Folder flag is not specified, and the rmf command cannot find the current folder, the command requests confirmation before removing the +inbox folder.
The rmf command does not delete any folder or any messages in a folder to which you have read-only access. The rmf command deletes only your private sequences and your current message information from the profile.
The rmf command does not delete folders recursively. You cannot remove subfolders by requesting the removal of a parent folder. If you remove a subfolder, the parent of that folder becomes the current folder.
The following entries are entered in the UserMhDirectory/.mh_profile file:
Current-Folder: | Sets the default current folder. |
Path: | Specifies the user's MH directory. |
Attention: The rmf command irreversibly deletes messages that do not have other links.
rmfThe system responds with a message similar to the following:
Remove folder "status"?If you do want the folder removed, enter yes. The system responds with a message similar to the following:
[+inbox now current]
rmf +meetings
$HOME/.mh_profile | Defines the MH user profile. |
/usr/bin/rmf | Contains the rmf command. |
The rmm command.
The mh_alias file format, mh_profile file format.
Mail Overview in AIX Version 4.3 System User's Guide: Communications and Networks.
Peek, Jerry. MH and xmh: E-mail for Users and Programmers. Sebastopol, CA: O'Reilly & Associates, 1992.