NAME
inc - incorporate new mailSYNOPSIS
inc
[+folder] [-audit audit-file] [-noaudit]
[-changecur | -nochangecur] [-form formfile]
[-format string] [-file name] [-silent |
-nosilent] [-truncate | -notruncate] [-width
columns] [-host hostname] [-user username]
[-pack file] [-nopack] [-proxy command]
[-sasl] [-saslmech mechanism] [-snoop]
[-version] [-help]
DESCRIPTION
Inc incorporates mail from the user's incoming mail drop into an nmh folder. If the mail drop is a file, it can be in mbox or MMDF format. If the mail drop is a directory it will considered to be a Maildir format mail drop. You may specify which folder to use with +folder. If no folder is specified, then inc will use either the folder given by a (non-empty) “Inbox” entry in the user's profile, or the folder named “inbox”. If the specified (or default) folder doesn't exist, the user will be queried prior to its creation. When the new messages are incorporated into the folder, they are assigned numbers starting with the next highest number for the folder. As the messages are processed, a scan listing of the new mail is produced. If the user's profile contains a “Msg-Protect: nnn” entry, it will be used as the protection on the newly created messages, otherwise the nmh default of 0644 will be used. For all subsequent operations on these messages, this initially assigned protection will be preserved. If the switch -audit audit-file is specified (usually as a default switch in the profile), then inc will append a header line and a line per message to the end of the specified audit-file with the format:<<inc>> date <scan line for first message> <scan line for second message> <etc.>
Using POP
inc will normally check local mail drops for mail, as covered above. But if the option “pophost” is set in “mts.conf”, or if the -host hostname switch is given, or if the $MAILHOST environment variable is set, then inc will query this POP service host for mail to incorporate. If $MAILHOST is set and -host is specified as well, the commandline switch will override the environment variable. The default is for inc to assume that your account name on the POP server is the same as your current username. To specify a different username, use the -user username switch. When using POP, you will normally need to type the password for your account on the POP server, in order to retrieve your messages. It is possible to automate this process by creating a “.netrc” file containing your login account information for this POP server. For each POP server, this file should have a line of the following form. Replace the words mypopserver, mylogin, and mypassword with your own account information.
machine mypopserver login
mylogin password mypassword
This “.netrc” file should be owned and readable only by
you.
If passed the -proxy command switch, inc will use the
specified command to establish the connection to the POP server. The string
%h in the command will be substituted by the hostname to connect to.
If inc uses POP, then the -pack file switch is considered.
If given, then inc simply uses the POP to packf the user's
maildrop from the POP service host to the named file. This switch is provided
for those users who prefer to use msh to read their maildrops.
For debugging purposes, you may give the switch -snoop, which will allow
you to watch the POP transaction take place between you and the POP server.
If nmh has been compiled with SASL support, the -sasl switch will
enable the use of SASL authentication. Depending on the SASL mechanism used,
this may require an additional password prompt from the user (but the
“.netrc” file can be used to store this password). The
-saslmech switch can be used to select a particular SASL mechanism.
If SASL authentication is successful, inc will attempt to negotiate a
security layer for session encryption. Encrypted traffic is labelled with
`(encrypted)' and `(decrypted)' when viewing the POP transaction with the
-snoop switch.
FILES
^$HOME/.mh_profile~^The user profile ^/etc/nmh/mts.conf~^nmh mts configuration file ^/var/mail/$USER~^Location of mail drop
PROFILE COMPONENTS
^Path:~^To determine the user's nmh directory ^Alternate-Mailboxes:~^To determine the user's mailboxes ^Inbox:~^To determine the inbox, default “inbox” ^Folder-Protect:~^To set mode when creating a new folder ^Msg-Protect:~^To set mode when creating a new message and audit-file ^Unseen-Sequence:~^To name sequences denoting unseen messages
SEE ALSO
mhmail(1), scan(1), mh-mail(5), post(8)DEFAULTS
`+folder' defaulted by “Inbox” above `-noaudit' `-changecur' `-format' defaulted as described above `-nosilent' `-truncate' if `-file name' not given, `-notruncate' otherwise `-width' defaulted to the width of the terminal `-nopack'
CONTEXT
The folder into which messages are being incorporated will become the current folder. The first message incorporated will become the current message, unless the -nochangecur option is specified. This leaves the context ready for a show of the first new message.BUGS
The argument to the -format switch must be interpreted as a single token by the shell that invokes inc. Therefore, one must usually place the argument to this switch inside quotes.11 June 2012 | MH.6.8 |