PACKF(1mh)
π PACKF π
okay bestie, gather round, because this one is literally the friend who helps you move π«Ά β packf takes copies of messages from an nmh folder and squishes them all into one single file. no cap. it's giving "cleanup era."
β¨ SYNOPSIS β¨
packf [-help] [-version] [+folder] [msgs] [-file name] [-mbox] [-mmdf]
πΈ DESCRIPTION πΈ
So here's the vibe: packf will pack copies of messages from a folder, into a single file. copies, bestie β your originals stay exactly where they are, we're not touching them π
Now, the delimiter situation. that's the little line that separates messages in the file, and you get to pick the flavor:
- if you pass
-mbox(which is the default, so it's already on if you say nothing), the messages get separated using mbox (uucp) style delimiters. this is the format most mail clients use (elm, mailx, etc.) β so it's the crowd-pleaser, the main character of formats π - if you pass
-mmdfinstead, the messages get separated by mmdf style delimiters. and what does that look like? each message in the file is separated by four CTRL-A's and a newline. yes, four. that's not a typo, that's just mmdf's whole thing π«
You can tell it where to dump everything with the -file name switch. and if you don't name a file? it defaults to msgbox. cute, right?
Here's the part that's lowkey important, so pay attention bestie:
- if the file name you gave points to an existing file, then the specified messages will be appended to the end of the file β no overwriting, we're not monsters.
- otherwise the file will be created and the messages appended.
and now, the β¨delimiter loreβ¨. packf makes an mbox-style delimiter by examining the first line of the message:
- if the first line is a
Return-Pathfield, its address and the current date and time are used. - otherwise, if the first line has an
X-Envelope-Fromfield, its contents (which should already be in the correct format) are used. - otherwise, a dummy address and the current date and time are used. fallback queen π
and the best part?? messages that are packed by packf can be unpacked using inc. reversible behavior, we love to see it π
π FILES π
$HOME/.mh_profileβ The user profile
π¦ PROFILE COMPONENTS π¦
Path:β To determine the user's nmh directoryCurrent-Folder:β To find the default current folderMsg-Protect:β To set mode when creating a newfile
π SEE ALSO π
β DEFAULTS β
+folderdefaults to the current foldermsgsdefaults to all-mbox-file ./msgbox
π CONTEXT π
If a folder is given, it will become the current folder. and the first message packed will become the current message. so yeah, it moves the spotlight, not just the mail π β¨
okay that's the whole page bestie, you're officially packf-pilled π«Ά this was brought to you by nmh-1.8, dated 1999-05-13 β yeah she's been iconic since the 90s and she's still serving π periodt.
π¦ 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