Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

rmm(1mh)

rmf(1mh)

Name

rmf − remove folder

Syntax

rmf [+foldername] [−interactive] [−nointeractive] [−help]

Description

The rmf command removes all of the messages (files) within the current folder and then removes the folder itself.  If there are any files within the folder which are not part of MH, they are not removed, and an error message is displayed.

You can specify a folder other than the current folder, by using the +folder option.  If you do not specify a folder, and rmf cannot find the current folder, rmf asks you whether you want to delete +inbox instead.

Note that the rmf command irreversibly deletes messages that do not have other links, so use it with caution.

If the folder being removed is a subfolder, the parent folder becomes the new current folder, and rmf tells you that this has happened. This provides an easy mechanism for selecting a set of messages, operating on the list, then removing the list and returning to the current folder from which the list was extracted.

The rmf of a read-only folder deletes the private sequence and cur information ( atr−, seq− and folder entries) from the profile without affecting the folder itself. If you have sub-folders within a folder, you must delete all the sub folders before you can delete the folder itself.

Files

$HOME/.mh_profile The user profile

Profile Components

Path: To determine the user’s MH directory
Current-Folder: To find the default current folder

Context

This command sets the current folder to the parent folder if a sub-folder is removed.  If the current folder is removed, it makes inbox current. In all other cases it does not change the current folder or message.

See Also

rmm(1mh)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026