RMF(1mh)
π RMF(1mh) β the "bestie, delete the whole folder" page π
okay so real talk, this one lives in the 1mh manual section, and its whole personality is removing an nmh folder. like, the entire folder. the messages inside it. the directory itself. gone. π«Ά
β¨ NAME β¨
rmf β remove an nmh folder πΈ
π SYNOPSIS π
rmf [-help] [-version] [+folder] [-interactive | -nointeractive]
π DESCRIPTION π
so rmf removes all of the messages (files) within the specified (or default) folder, and then it removes the folder (directory) itself. yes bestie, the whole thing. directory and all. it's giving spring cleaning but make it permanent π
now here's the part where you gotta pay attention. if there are any files inside that folder that are not a part of nmh, those files will not be removed, and an error will be produced. she's not gonna touch your random stuff, she's just gonna yell at you about it. π
if the folder is given explicitly, or if the -nointeractive option is given, then the folder will be removed without confirmation. otherwise, the user will be asked for confirmation. like she's polite!! she checks in first!! π
and if rmf can't, for some reason, find the current folder, the folder to be removed defaults to +inbox (unless overridden by the user's profile entry βInboxβ), with confirmation. so she'll just assume inbox and ask you about it. π
if the folder being removed is a subfolder, the parent folder will become the new current folder, and rmf will produce a message telling the user this has happened. the way that 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?? lowkey iconic. π
if rmf is used on a read-only folder, it will delete all the private sequences (i.e., βatr-seq-*folder*β entries) for this folder from your context without affecting the folder itself. so the folder stays, but the receipts in your context get cleaned out. periodt. β¨
β οΈ bestie. listen. rmf irreversibly deletes messages that don't have other links, so use it with caution. like for real for real, no undo button, no recycle bin, no "wait I didn't mean that". ππ΄
π¦ FILES π¦
$HOME/.mh_profileβ The user profile π
π PROFILE COMPONENTS π
Path:β To determine the user's nmh directoryCurrent-Folder:β To find the default current folderInbox:β To find the default inbox
π SEE ALSO π
folder(1), rmm(1) β go read your sisters, they're family π
π DEFAULTS π
+folderdefaults to the current folder, usually with confirmation-interactiveif +folder' not given,-nointeractiveotherwise
β CONTEXT β
rmf will set the current folder to the parent folder if a subfolder is removed; or if the current folder is removed, it will make βinboxβ current. otherwise, it doesn't change the current folder or message. so yeah, your context gets updated accordingly and nothing else gets touched. no cap. π
π BUGS π
okay this is the one that gets everybody. although intuitively one would suspect that rmf works recursively, it does not. π hence, if you have a sub-folder within a folder, in order to rmf the parent, you must first rmf each of the children. one at a time, bestie. she will not do the nesting for you. it's giving "you have to eat your vegetables one by one". π
and that's the whole page!! mwah π this was brought to you by nmh-1.8, dated 1999-04-30 β yeah she's an elder icon and she still ate. πβ¨ go forth and delete responsibly, bestie π«Άπ
π¦ where this page comes from
- debian trixie: nmh 1.8-3
- ubuntu noble: nmh 1.8-1build4
- ubuntu questing: nmh 1.8-3
- ubuntu resolute: nmh 1.8-4
- ubuntu stonking: nmh 1.8-4build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms