RCVSTORE(1mh)
π rcvstore(1mh) β the mail-slurping bestie π
okay so picture this: rcvstore is the girl who takes a message off standard input and asynchronously files it into an nmh folder. she's the backstage crew of your mail setup, and she eats. periodt. π
β¨ SYNOPSIS β¨
/usr/lib/mh/rcvstore [-help] [-version] [+folder] [-create | -nocreate]
[-unseen | -nounseen] [-zero | -nozero] [-sequence name ...]
[-public | -nopublic]
πΈ DESCRIPTION πΈ
so like, rcvstore takes a message from standard input and incorporates it into an nmh folder. she's basically always running in tandem with mail filtering programs β think slocal and procmail β doing the whole "filter your mail into different folders" thing. the way she just sorts your life out? iconic. π
you can tell her which folder to use with +folder. and if you don't specify one? no stress, she'll use the folder given by a non-empty βInbox:β entry in your profile. and if even that's not there, she'll just use the folder named βinboxβ. she always has a plan B, fr fr.
if you pass -create (which is the default, bestie, she's on it) and the specified (or default) folder doesn't exist, she'll just make it. you can turn that off with -nocreate β and in that case, if the folder doesn't exist, she exits. no folder, no service. π
when the new message lands in the folder, it gets assigned the next highest number for that folder. simple as.
she'll incorporate anything except zero length messages into your nmh folder. and she will not change the message in any way. she's not here to edit your mail, she's here to file it. π«Ά
if your profile has a βMsg-Protect: nnnβ entry, that gets used as the mode (in octal!) on the newly created message. if not, the nmh default mode of 0600 is used β see chmod(1) β (on filesystems that support it, obviously). and for all subsequent operations on that message, this initially assigned mode is preserved. locked in. π
okay now the sequence stuff, pay attention:
- if you give her
-unseen(it's on by default, she's generous) and your profile has a non-empty βUnseen-Sequenceβ entry, thenrcvstoreadds the newly incorporated message to each sequence named by that profile entry. you can kill this with-nounseen. important: these sequences will not be zeroed byrcvstoreprior to adding the new message. she does not touch them. periodt. - and also! incoming messages can be added to additional sequences as they arrive, using the
-sequenceswitch. just like with the commandspickandmark, you can use-zeroand-nozeroto say whether to zero old sequences or not. similarly,-publicand-nopubliccan force these sequences to be public or private. so many options, so much power. π
π Locking and sequences π
okay bestie, this part is the drama. if you use the βUnseen-Sequenceβ profile entry, or if you use the -sequence argument, rcvstore might try to update its sequence state while another nmh process is also trying to do so. and that? that can cause one of those updates to be lost. π
to avoid this β just between asynchronous invocations ofrcvstoreβ always use it with an external locking mechanism. aprocmailrc(5)local lockfile would work, or if you're not using procmail, then consider usingdotlockfile(1)orflock(1). protect your sequences, protect your peace. π§
ποΈ FILES ποΈ
$HOME/.mh_profileβ the user profile
π PROFILE COMPONENTS π
Path:β to determine the user's nmh directoryFolder-Protect:β to set mode when creating a new folderInbox:β to find the default inboxMsg-Protect:β to set mode when creating a new messageUnseen-Sequence:β to name sequences denoting unseen messages
π SEE ALSO π
mh-sequence(5), procmailex(5), procmailrc(5), rcvdist(1), rcvpack(1), rcvtty(1)
β DEFAULTS β
+folderdefaults to βInboxβ profile entry-create-unseen-nozero
π CONTEXT π
no context changes will be attempted, with the exception of sequence manipulation. that's the only glow-up happening here. β¨
and that's the whole vibe, bestie β this is nmh-1.8, dated 2013-02-19, and rcvstore has been quietly serving looks and filing mail since way before it was cool. she ate and left no crumbs. π
π¦ 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