SASL support from Ken Hornstein <kenh@cmf.nrl.navy.mil>.
[mmh] / man / inc.man
1 .\"
2 .\" %nmhwarning%
3 .\" $Id$
4 .\"
5 .\" include the -mh macro file
6 .so %etcdir%/tmac.h
7 .\"
8 .TH INC %manext1% MH.6.8 [%nmhversion%]
9 .SH NAME
10 inc \- incorporate new mail
11 .SH SYNOPSIS
12 .in +.5i
13 .ti -.5i
14 inc
15 \%[+folder]
16 \%[\-audit\ audit\-file] \%[\-noaudit]
17 \%[\-changecur]
18 .br
19 \%[\-nochangecur]
20 \%[\-form\ formatfile]
21 \%[\-format\ string]
22 .br
23 \%[\-file\ name]
24 \%[\-silent] \%[\-nosilent]
25 \%[\-truncate]
26 .br
27 \%[\-notruncate]
28 \%[\-width\ columns]
29 %nmhbeginpop%
30 \%[\-host\ hostname]
31 .br
32 \%[\-user\ username]
33 \%[\-pack\ file]
34 \%[\-nopack]
35 \%[\-kpop]
36 \%[\-sasl]
37 \%[\-saslmech\ mechanism]
38 .br
39 %nmhendpop%
40 \%[\-version]
41 \%[\-help]
42 .in -.5i
43 .SH DESCRIPTION
44 \fIInc\fR incorporates mail from the user's incoming mail drop into
45 an \fInmh\fR folder.
46
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.
52
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.
56
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.
61
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:
65
66 .nf
67 .ti 1i
68 \*(<<inc\*(>> date
69 .ti 1.5i
70 <scan line for first message>
71 .ti 1.5i
72 <scan line for second message>
73 .ti 2.5i
74 <etc.>
75 .fi
76
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.
83
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.
87
88 In all cases, the user's mail drop will be zeroed, unless the
89 `\-notruncate' switch is given.
90
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.
95
96 The interpretation of the `\-form\ formatfile', `\-format\ string', and
97 `\-width\ columns' switches is the same as in \fIscan\fR\0(1).
98
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'
102 switch is given.
103
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.
112
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.
116 %nmhbeginpop%
117
118 .Uh "Using POP"
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.
124
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.
128
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.
136
137 machine mypopserver login mylogin password mypassword
138
139 This \*(lq.netrc\*(rq file should be owned and readable only by
140 you.
141
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
146 maildrops.
147
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
150 POP server.
151
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
155 use KPOP.
156
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.
162
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.
167 %nmhendpop%
168 .Fi
169 ^$HOME/\&.mh\(ruprofile~^The user profile
170 ^%etcdir%/mts.conf~^nmh mts configuration file
171 ^%mailspool%/$USER~^Location of mail drop
172 .Pr
173 ^Path:~^To determine the user's nmh directory
174 .Ps
175 ^Alternate\-Mailboxes:~^To determine the user's mailboxes
176 .Ps
177 ^Inbox:~^To determine the inbox, default \*(lqinbox\*(rq
178 .Ps
179 ^Folder\-Protect:~^To set mode when creating a new folder
180 .Ps
181 ^Msg\-Protect:~^To set mode when creating a new message and audit\-file
182 .Ps
183 ^Unseen\-Sequence:~^To name sequences denoting unseen messages
184 .Sa
185 mhmail(1), scan(1), mh\-mail(5), post(8)
186 .De
187 `+folder' defaulted by \*(lqInbox\*(rq above
188 .Ds
189 `\-noaudit'
190 .Ds
191 `\-changecur'
192 .Ds
193 `\-format' defaulted as described above
194 .Ds
195 `\-nosilent'
196 .Ds
197 `\-truncate' if `\-file\ name' not given, `\-notruncate' otherwise
198 .Ds
199 `\-width' defaulted to the width of the terminal
200 %nmhbeginpop%
201 .Ds
202 `\-nopack'
203 %nmhendpop%
204 .Co
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.
209 .Bu
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.
213 .En