RCVPACK(1mh)
π RCVPACK β the manual, but make it cute
okay bestie, gather round, because we're talking about rcvpack from the nmh family (that's the manual page RCVPACK(1mh), mwah π
). it's a tiny little utility and honestly? it eats. let's get into it.
β¨ NAME β¨
rcvpack β append an email from standard input to a file π
like, that's it. that's the whole job. she takes what you pipe in and tacks it onto the end of a file. iconic behaviour, no notes.
πΈ SYNOPSIS πΈ
/usr/lib/mh/rcvpack [-help] [-version] file [-mbox] [-mmdf]
π DESCRIPTION π
so here's the vibe: rcvpack appends a copy of a message to the file you name on its command line. you hand her a message on standard input, she parks a copy at the end of that file. simple, clean, slay. β¨
now, the format question, because there are two ways she can separate messages in that file:
- if you give the
-mboxswitch β and this is the default, so if you say nothing you get this β messages get separated by mbox (uucp) style delimiters. this is the format most mail clients use, likeelm,mailx, etc. so it's giving "universally understood, main character energy" π«Ά - alternatively, if you hand her the
-mmdfswitch, messages get separated by mmdf style delimiters β and that means each message is separated by four CTRL-A's and a newline. yes, four. that's not a typo, that's the format. π
and here's the part that's lowkey the most impressive: rcvpack will correctly lock and unlock the file so that access gets serialized when you're running multiple copies of rcvpack at the same time. no race conditions, no corrupted file, no chaos. she's organized. she's responsible. she's the friend who actually makes the group dinner reservation. π
one more thing though, and I gotta be honest with you bestie: in general, rcvpack has been rendered obsolete by the file action of slocal. so like... she's a legacy queen. but she may still have some use in shell scripts! so don't write her off entirely. π¦
π FILES π
/etc/nmh/mts.confβ the nmh mts configuration file π
β SEE ALSO β
go read her sisters and cousins, they're all serving:
π BUGS π
okay so, the tea: only two return codes are meaningful, others should be. that's it, that's the bug note. she's a little mysterious about her exit statuses. we don't know which two. we just live with it. π
π cute little sign-off π
this page is from nmh-1.8, dated 1999-04-30 β yes, she's an elder, but she still locks her files properly, so respect her. go append something to something, bestie. iykyk. πβ¨π¦
π¦ 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