1 .TH RCVSTORE %manext1% 2013-02-19 "%nmhversion%"
6 rcvstore \- asynchronously incorporate mail into an nmh folder
10 .B %nmhlibexecdir%/rcvstore
14 .RB [ \-create " | " \-nocreate ]
15 .RB [ \-unseen " | " \-nounseen ]
16 .RB [ \-zero " | " \-nozero ]
20 .RB [ \-public " | " \-nopublic ]
24 incorporates a message from the standard input into an
26 folder. This command is typically used in conjunction with
27 mail filtering programs such as
31 to filter your mail into different folders.
33 You may specify which folder to use with
35 If no folder is specified,
37 will use the folder given by a non-empty \*(lqInbox:\*(rq entry in
38 the user's profile, else it will use the folder named \*(lqinbox\*(rq.
42 is given (it is the default) and if the specified
43 (or default) folder does not exist, then it will be created. You may
48 will exit if the specified folder does not exist.
50 When the new message is incorporated into the folder, it is assigned
51 the next highest number for that folder.
54 will incorporate anything except zero length messages into the user's
56 folder. It will not change the message in any way.
58 If the user's profile contains a
59 .RI \*(lq "Msg\-Protect: nnn" \*(rq
60 entry, it will be used as the mode to use, in octal, on the newly created
61 message, otherwise the
63 default mode of 0600, see
65 will be used (on filesystems that support it).
66 For all subsequent operations on this message, this initially assigned
67 mode will be preserved.
71 is given (it is on by default), and if the profile entry
72 \*(lqUnseen\-Sequence\*(rq is present and non-empty, then
74 will add the newly incorporated message to each sequence
75 named by this profile entry. You may use the switch
77 to disable this. These sequences will not be zeroed by
79 prior to adding the new message.
81 Furthermore, the incoming messages may be added to additional sequences
82 as they arrive by the use of the
84 switch. As with the commands
88 you may also use the switches
92 to specify whether to zero old sequences or not.
97 switches may be used to force these sequences to be public or
99 .SS Locking and \-unseen
100 If you use the \*(lqUnseen-Sequence\*(rq profile entry, rcvstore could
101 try to read and update its sequence state while another
103 process is also trying to do so. This can cause the sequence state to
104 lose track. To avoid this, just between asynchronous invocations of
106 do not use it without an external locking mechanism, for example, a
108 local lockfile, if you use the \*(lqUnseen-Sequence\*(rq profile entry.
112 .ta \w'%nmhetcdir%/ExtraBigFileName 'u
113 ^$HOME/.mh_profile~^The user profile
115 .SH "PROFILE COMPONENTS"
119 .ta \w'ExtraBigProfileName 'u
120 ^Path:~^To determine the user's nmh directory
121 ^Folder\-Protect:~^To set mode when creating a new folder
122 ^Inbox:~^To find the default inbox
123 ^Msg\-Protect:~^To set mode when creating a new message
124 ^Unseen\-Sequence:~^To name sequences denoting unseen messages
127 .IR mh\-sequence (5),
135 .RB ` +folder "' defaults to \*(lqInbox\*(rq profile entry"
141 No context changes will be attempted, with the exception of
142 sequence manipulation.