RCVSTORE(1)
π NAME π
rcvstore β asynchronously incorporate mail into an nmh folder. bestie, it's the lil guy that quietly files your mail while you're not looking β¨
π¦ SYNOPSIS π¦
/usr/libexec/nmh/rcvstore [-help] [-version] [+folder] [-create |
-nocreate] [-unseen | -nounseen] [-zero | -nozero] [-sequence name
...] [-public | -nopublic]
πΈ DESCRIPTION πΈ
okay so. rcvstore takes a message from standard input and tucks it into an nmh folder. that's the whole job. main character behavior, honestly β shows up, does one thing, leaves. π
the way it's usually used is alongside mail filtering programs like slocal and procmail, so your mail can get sorted into different folders as it comes in. yes, that's the vibe. π
π which folder tho
you tell it where to go with +folder. and if you don't? it checks for a non-empty "Inbox:" entry in your profile, and if that's not there either it just uses the folder literally named "inbox". default queen. π
β¨ creating folders
if you pass -create (and bestie, it's the default, so you already are) and the folder you asked for β or the default one β doesn't exist, it gets created. easy. you can turn that off with -nocreate, and then if the folder doesn't exist, rcvstore just exits. no folder, no service. π
once the new message lands in the folder, it gets the next highest number for that folder. numbered, seated, iconic. π₯
π«Ά what it does to your message
rcvstore will incorporate anything except zero length messages into your nmh folder. and it will not change the message in any way. zero editing. it's giving respectful. β¨
π permissions, we care about those
if your profile has a "Msg-Protect: nnn" entry, that's used as the mode β in octal β for the newly created message. no entry? then the nmh default mode of 0600 gets used, see chmod(1) (on filesystems that support it, iykyk). and for all subsequent operations on that message, this initially assigned mode is preserved. it locks in. π
π unseen sequences
if you pass -unseen (on by default, so again, you already are) and your profile entry "Unseen-Sequence" is present and non-empty, then rcvstore adds the newly incorporated message to every sequence named by that profile entry. don't want that? -nounseen and it's gone. π
β οΈ important: these sequences will not be zeroed by rcvstore before it adds the new message. no zeroing. don't come for me.
π― extra sequences
incoming messages can also be added to additional sequences as they arrive, using the -sequence switch. and just like with the commands pick and mark, you've got -zero and -nozero to say whether to zero old sequences or not. same energy, -public and -nopublic let you force these sequences to be public or private. choose your fighter. β
π Locking and sequences
this is the part where we get real for a sec. π
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 can cause one of those updates to be lost. not cute. π
to avoid this β and this is specifically just between asynchronous invocations of rcvstore β always use it with an external locking mechanism. a procmailrc(5) local lockfile would work. or, if you're not using procmail, then consider dotlockfile(1) or flock(1). lock it up bestie, 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 the "Inbox" profile entry-create-unseen-nozero
π CONTEXT π
no context changes will be attempted, with the exception of sequence manipulation. that's it, that's the whole context situation. periodt. β¨
and that's the whole page, bestie!! this was nmh-1.8, dated 2013-02-19 β yes she's a little vintage, but vintage is just another word for iconic π π mwah, go file some mail π¦πΈ
π¦ where this page comes from
- alpine 3.24: nmh-doc 1.8-r3 Β· BSD-3-Clause
- epel 10: nmh 1.8-3.el10_1 Β· BSD
- epel 9: nmh 1.8-1.el9 Β· BSD
- fedora 43: nmh 1.8-9.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: nmh 1.8-10.fc44 Β· LicenseRef-Callaway-BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms