DOKK / manpages / debian 12 / mew-bin / incm.1.en
INCM(1) General Commands Manual INCM(1)

incm - Incorporating new mails for Mew

incm [options]

The incm utility incorporates new mails from the mbox or the maildir to Mew's inbox folder.

The options are as follows:

Retrieve all mails from maildir/{cur,new} for maildir.
Backup mails. mbox: No truncate mbox file. maildir: To maildir/cur directory.
Use the Content-Length: field, instead of the "From " line, as a mail separator for mbox.
Path to mbox/maildir. If path is a file, mbox is assumed. If path is a directory, maildir is assumed.
The same as the -d option.
Read one mail from stdin instead of mbox/maildir.
A path to the inbox directory.
Don't touch ".mew-mtime".
Preserve Unix From (Envelope Sender) line in mbox case.
Specify file mode that creates in mbox case.
Use the suffix when creating messages.
Use this suffix.
Display this help message.
Display the version.

For mbox, the mail separator is "From " in the beginning of lines. The incm utility does not convert ">From " to "From " in the beginning of lines in the body. On Solaris, Content-Length: should be used with the -c option to tell the end of mail.

To lock mbox, a lock file("<user>.lock"), flock() or lockf(), and open(O_EXLOCK) are used.

For maildir, no lock and no separator are necessary.

Consider the following situation:


cur/{1,2}
new/{3,4}

Executing incm without the options results in:


cur/{1,2}
new/{}
to inbox: {3,4}

Executing incm with the -a option results in:


cur/{}
new/{}
to inbox: {1,2,3,4}

Executing incm with the -b option results in:


cur/{1,2,3,4}
new/{}
to inbox: {3,4}

Executing incm with the -a option and the -b option results in:


cur/{1,2,3,4}
new/{}
to inbox: {1,2,3,4}
So, if both options are specified, messages are retrieved multiple times.
December 25, 2001