1 .TH INC %manext1% "August 14, 2016" "%nmhversion%"
6 inc \- incorporate new mail
15 .RB [ \-changecur " | " \-nochangecur ]
22 .RB [ \-silent " | " \-nosilent ]
23 .RB [ \-truncate " | " \-notruncate ]
37 .RB [ \-sasl " | " \-nosasl ]
48 incorporates mail from the user's incoming mail drop into
52 If the mail drop is a file, it can be in
57 If the mail drop is a directory it will considered to be a
61 You may specify which folder to use with
63 If no folder is specified, then
65 will use either the folder given by a (non\-empty)
67 entry in the user's profile, or the folder named
68 .RI \*(lq inbox \*(rq.
69 If the specified (or default) folder doesn't
70 exist, the user will be queried prior to its creation.
72 When the new messages are incorporated into the folder, they are assigned
73 numbers starting with the next highest number for the folder. As the
74 messages are processed, a
76 listing of the new mail is produced.
78 If the user's profile contains a
79 .RI \*(lq "Msg\-Protect: nnn" \*(rq
80 entry, it will be used as the protection on the newly created
81 messages, otherwise the
83 default of 0600 will be used (on filesystems that support it). For
84 all subsequent operations on these messages, this initially assigned
85 protection will be preserved.
90 is specified (usually as a default
91 switch in the profile), then
93 will append a header line and a
94 line per message to the end of the specified audit\-file with the format:
99 <scan line for first message>
100 <scan line for second message>
105 This is useful for keeping track of volume and source of incoming mail.
112 may also produce audits to this (or another) file, perhaps with
113 .RI \*(lq Message\-Id \*(rq
114 information to keep an exact correspondence
116 .RI \*(lq Audit\-file \*(rq
117 will be in the user's nmh directory unless a full path is specified.
120 will incorporate even improperly formatted messages into the
121 user's nmh folder, inserting a blank line prior to the offending component
122 and printing a comment identifying the bad message.
124 In all cases, the user's mail drop will be zeroed, unless the
129 .RI \*(lq Unseen\-Sequence \*(rq
130 is present and non\-empty, then
132 will add each of the newly incorporated messages to
133 each sequence named by the profile entry.
135 will not zero each sequence prior to adding messages.
137 The interpretation of the
145 switches is the same as in
151 switch, one can direct
153 to incorporate messages from a file other than the user's maildrop.
154 Note that the name file will NOT be zeroed, unless the
160 switch does not support use of standard input. Instead,
163 command can be used to incorporate mail from the standard input stream.
165 If the environment variable
169 uses it as the location of the user's maildrop instead of the default
173 switch still overrides this, however). If this
174 environment variable is not set, then
176 will consult the profile entry
177 .RI \*(lq MailDrop \*(rq
178 for this information. If the value found is
179 not absolute, then it is interpreted relative to the user's
181 directory. If the value is not found, then
183 will look in the standard system location for the user's maildrop.
189 to be quiet and not ask any questions at all. This is useful for putting
191 in the background and going on to other things.
195 will normally check local mail drops for mail, as covered above. But
197 .RI \*(lq pophost \*(rq
199 .RI \*(lq mts.conf \*(rq,
203 switch is given, or if the
205 environment variable is set, then
207 will query this POP service host for mail to incorporate. If
211 is specified as well, the commandline switch will override
212 the environment variable. The
214 switch specifies the port name or number used to connect to the POP
215 server. If unspecified the default is \*(lqpop3\*(rq.
217 To specify a username for authentication with the POP server, use the
220 switch. The credentials profile entry in the mh\-profile(5) man page
221 describes the ways to supply a username and password.
228 will use the specified command to establish the connection to the POP
231 in the command will be substituted by the hostname to connect to.
238 switch is considered. If given, then
240 simply uses the POP to
242 the user's maildrop from the POP service host to the named file.
244 For debugging purposes, you may give the switch
246 which will allow you to watch the POP transaction take place
247 between you and the POP server. If
248 .B \-saslmech xoauth2
249 is used, the HTTP transaction is also shown.
253 has been compiled with SASL support, the
256 the use of SASL authentication. Depending on the SASL mechanism used, this
257 may require an additional password prompt from the user (but the
259 file can be used to store this password, as described in the
260 mh-profile(5) man page). The
262 switch can be used to select a particular SASL mechanism.
264 If SASL authentication is successful,
266 will attempt to negotiate a security layer for session encryption.
267 Encrypted traffic is labelled with `(encrypted)' and `(decrypted)'
268 when viewing the POP transaction with the
272 man page description of
274 for its other features.
278 has been compiled with OAuth support, the
279 .B \-saslmech xoauth2
280 switch will enable OAuth authentication. The
282 switch must be used, and the
284 must be an email address the user has for the service, which must
285 be specified with the
288 switch. Before using this, the user must authorize nmh by running
290 and grant authorization to that account. See the
292 man page for more details.
294 Gmail only supports POP3 over TLS, but
296 has no TLS support. To work around this, use something like
297 .B -proxy 'openssl s_client -connect %h:995 -CAfile /etc/ssl/certs/ca-certificates.crt -quiet'
305 mts configuration file.
308 Location of the system mail drop.
310 .SH "PROFILE COMPONENTS"
314 To determine the user's nmh directory.
316 Alternate\-Mailboxes:
317 To determine the user's mailboxes.
320 To determine the inbox.
323 To set mode when creating a new folder.
326 To set mode when creating a new message and audit\-file.
329 To name sequences denoting unseen messages.
343 defaulted by \*(lqInbox\*(rq above.
361 \-notruncate otherwise.
364 The width of the terminal.
369 The folder into which messages are being incorporated will become the
370 current folder. The first message incorporated will become the current
373 option is specified. This leaves the context ready for a
375 of the first new message.