5 .\" include the -mh macro file
8 .TH INC %manext1% MH.6.8 [%nmhversion%]
10 inc \- incorporate new mail
16 \%[\-audit\ audit\-file] \%[\-noaudit]
20 \%[\-form\ formatfile]
24 \%[\-silent] \%[\-nosilent]
37 \%[\-saslmech\ mechanism]
44 \fIInc\fR incorporates mail from the user's incoming mail drop into
47 You may specify which folder to use with `+folder'. If no folder
48 is specified, then \fIinc\fR will use either the folder given by a
49 (non\-empty) \*(lqInbox:\*(rq entry in the user's profile, or the folder
50 named \*(lqinbox\*(rq. If the specified (or default) folder doesn't
51 exist, the user will be queried prior to its creation.
53 When the new messages are incorporated into the folder, they are assigned
54 numbers starting with the next highest number for the folder. As the
55 messages are processed, a \fIscan\fR listing of the new mail is produced.
57 If the user's profile contains a \*(lqMsg\-Protect: nnn\*(rq entry, it
58 will be used as the protection on the newly created messages, otherwise
59 the \fInmh\fR default of 0644 will be used. For all subsequent operations
60 on these messages, this initially assigned protection will be preserved.
62 If the switch `\-audit\ audit\-file' is specified (usually as a default
63 switch in the profile), then \fIinc\fR will append a header line and a
64 line per message to the end of the specified audit\-file with the format:
70 <scan line for first message>
72 <scan line for second message>
77 This is useful for keeping track of volume and source of incoming mail.
78 Eventually, \fIrepl\fR, \fIforw\fR, \fIcomp\fR, and \fIdist\fR
79 may also produce audits to this (or another) file, perhaps with
80 \*(lqMessage\-Id:\*(rq information to keep an exact correspondence
81 history. \*(lqAudit\-file\*(rq will be in the user's nmh directory unless
82 a full path is specified.
84 \fIInc\fR will incorporate even improperly formatted messages into the
85 user's nmh folder, inserting a blank line prior to the offending component
86 and printing a comment identifying the bad message.
88 In all cases, the user's mail drop will be zeroed, unless the
89 `\-notruncate' switch is given.
91 If the profile entry \*(lqUnseen\-Sequence\*(rq is present and non\-empty,
92 then \fIinc\fR will add each of the newly incorporated messages to
93 each sequence named by the profile entry. \fIInc\fR will not zero each
94 sequence prior to adding messages.
96 The interpretation of the `\-form\ formatfile', `\-format\ string', and
97 `\-width\ columns' switches is the same as in \fIscan\fR\0(1).
99 By using the `\-file\ name' switch, one can direct \fIinc\fR to
100 incorporate messages from a file other than the user's maildrop.
101 Note that the name file will NOT be zeroed, unless the `\-truncate'
104 If the environment variable \fB$MAILDROP\fR is set, then \fIinc\fR
105 uses it as the location of the user's maildrop instead of the default
106 (the `-file\ name' switch still overrides this, however). If this
107 environment variable is not set, then \fIinc\fR will consult the profile
108 entry \*(lqMailDrop\*(rq for this information. If the value found is
109 not absolute, then it is interpreted relative to the user's \fInmh\fR
110 directory. If the value is not found, then \fIinc\fR will look in the
111 standard system location for the user's maildrop.
113 The `\-silent' switch directs \fIinc\fR to be quiet and not ask any
114 questions at all. This is useful for putting \fIinc\fR in the background
115 and going on to other things.
119 \fIinc\fR will normally check local mail drops for mail, as given
120 above. But if the option \*(lqpophost:\*(rq is set in the mts
121 configuration file \*(lqmts.conf\*(rq, or if the `\-host\ hostname'
122 switch is given, then \fIinc\fR will query this POP service host
123 for mail to incorporate.
125 The default is for \fIinc\fR to assume that your account name on
126 the POP server is the same as your current username. To specify
127 a different username, use the `\-user\ username' switch.
129 When using POP, you will normally need to type the password for
130 your account on the POP server, in order to retrieve your messages.
131 It is possible to automate this process by creating a \*(lq.netrc\*(rq
132 file containing your login account information for this POP server.
133 For each POP server, this file should have a line of the following
134 form. Replace the words mypopserver, mylogin, and mypassword with
135 your own account information.
137 machine mypopserver login mylogin password mypassword
139 This \*(lq.netrc\*(rq file should be owned and readable only by
142 If \fIinc\fR uses POP, then the `\-pack\ file' switch is considered.
143 If given, then \fIinc\fR simply uses the POP to \fIpackf\fR\0(1) the
144 user's maildrop from the POP service host to the named file. This switch
145 is provided for those users who prefer to use \fImsh\fR to read their
148 For debugging purposes, you may give the switch `\-snoop', which will
149 allow you to watch the POP transaction take place between you and the
152 If nmh has been compiled with KPOP #defined, the `\-kpop' switch will allow
153 \fIinc\fR to use Kerberized POP rather than standard POP3 on a given invocation.
154 If POPSERVICE was also #defined to "kpop", \fIinc\fR will be hardwired to always
157 If nmh has been compiled with SASL support, the `\-sasl' switch will enable
158 the use of SASL authentication. Depending on the SASL mechanism used, this
159 may require an additional password prompt from the user (but the
160 \*(lq.netrc\*(rq file can be used to store this password). The
161 `\-saslmech' switch can be used to select a particular SASL mechanism.
163 If SASL authentication is successful, \fIinc\fR will attempt to negotiate
164 a security layer for session encryption. Encrypted traffic is labelled
165 with `(encrypted)' and `(decrypted)' when viewing the POP transaction
166 with the `\-snoop' switch.
169 ^$HOME/\&.mh\(ruprofile~^The user profile
170 ^%etcdir%/mts.conf~^nmh mts configuration file
171 ^%mailspool%/$USER~^Location of mail drop
173 ^Path:~^To determine the user's nmh directory
175 ^Alternate\-Mailboxes:~^To determine the user's mailboxes
177 ^Inbox:~^To determine the inbox, default \*(lqinbox\*(rq
179 ^Folder\-Protect:~^To set mode when creating a new folder
181 ^Msg\-Protect:~^To set mode when creating a new message and audit\-file
183 ^Unseen\-Sequence:~^To name sequences denoting unseen messages
185 mhmail(1), scan(1), mh\-mail(5), post(8)
187 `+folder' defaulted by \*(lqInbox\*(rq above
193 `\-format' defaulted as described above
197 `\-truncate' if `\-file\ name' not given, `\-notruncate' otherwise
199 `\-width' defaulted to the width of the terminal
205 The folder into which messages are being incorporated will become the
206 current folder. The first message incorporated will become the current
207 message, unless the `\-nochangecur' option is specified. This leaves
208 the context ready for a \fIshow\fR of the first new message.
210 The argument to the `\-format' switch must be interpreted as a single
211 token by the shell that invokes \fIinc\fR. Therefore, one must usually
212 place the argument to this switch inside double\-quotes.