RMF(1mh)

πŸ“¦
version 1.8 Β· 4 versions
, in debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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 directory
  • Current-Folder: β€” To find the default current folder
  • Inbox: β€” To find the default inbox

🌟 SEE ALSO 🌟

folder(1), rmm(1) β€” go read your sisters, they're family πŸ’–


πŸ“ DEFAULTS πŸ“

  • +folder defaults to the current folder, usually with confirmation
  • -interactive if +folder' not given, -nointeractive otherwise

⭐ 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