Debian Codegraph @

bin/incm.1

raw
1 .\" Copyright (C) 2001-2003 Mew developing team.
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\"
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
13 .\" 3. Neither the name of the team nor the names of its contributors
14 .\" may be used to endorse or promote products derived from this software
15 .\" without specific prior written permission.
16 .\"
17 .\" THIS SOFTWARE IS PROVIDED BY THE TEAM AND CONTRIBUTORS ``AS IS'' AND
18 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE TEAM OR CONTRIBUTORS BE
21 .\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
24 .\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25 .\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
26 .\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
27 .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 .TH INCM 1 "December 25, 2001"
29 .SH NAME
30 incm - Incorporating new mails for Mew
31 .\"
32 .SH SYNOPSIS
33 incm
34 .RI [ options ]
35 .\"
36 .SH DESCRIPTION
37 The
38 .B incm
39 utility incorporates new mails from the mbox or the maildir to
40 Mew's inbox folder.
41 .PP
42 The options are as follows:
43 .TP 8
44 .B \-a
45 Retrieve all mails from maildir/{cur,new} for maildir.
46 .TP 8
47 .B \-b
48 Backup mails.
49 mbox: No truncate mbox file.
50 maildir: To maildir/cur directory.
51 .TP 8
52 .BI \-c
53 Use the Content-Length: field, instead of the "From " line,
54 as a mail separator for mbox.
55 .TP 8
56 .BI \-d " path"
57 Path to mbox/maildir.
58 If
59 .IR path
60 is a file, mbox is assumed. If
61 .IR path
62 is a directory, maildir is assumed.
63 .TP 8
64 .BI \-m " path"
65 The same as the
66 .B \-d
67 option.
68 .TP 8
69 .BI \-s
70 Read one mail from stdin instead of mbox/maildir.
71 .TP 8
72 .BI \-i " inboxdir"
73 A path to the inbox directory.
74 .TP 8
75 .B \-u
76 Don't touch ".mew-mtime".
77 .TP 8
78 .B \-f
79 Preserve Unix From (Envelope Sender) line in mbox case.
80 .TP 8
81 .BI \-p " mode"
82 Specify file mode that creates in mbox case.
83 .TP 8
84 .B \-o
85 Use the suffix when creating messages.
86 .TP 8
87 .BI \-x " suffix"
88 Use this
89 .IR suffix .
90 .TP 8
91 .B \-h
92 Display this help message.
93 .TP 8
94 .B \-v
95 Display the version.
96 .PP
97 .SS mbox
98 For mbox, the mail separator is "From " in the beginning of lines.
99 The
100 .B incm
101 utility does not convert ">From " to "From " in the beginning of lines
102 in the body.
103 On Solaris, Content-Length: should be used with the
104 .BI \-c
105 option to tell the end of mail.
106 .PP
107 To lock mbox, a lock file("<user>.lock"),
108 flock() or lockf(), and open(O_EXLOCK) are used.
109 .PP
110 .SS maildir
111 For maildir, no lock and no separator are necessary.
112 .PP
113 Consider the following situation:
114 .nf
115 cur/{1,2}
116 new/{3,4}
117 .fi
118 .PP
119 Executing
120 .B incm
121 without the options results in:
122 .nf
123 cur/{1,2}
124 new/{}
125 to inbox: {3,4}
126 .fi
127 .PP
128 Executing
129 .B incm
130 with the
131 .B \-a
132 option results in:
133 .nf
134 cur/{}
135 new/{}
136 to inbox: {1,2,3,4}
137 .fi
138 .PP
139 Executing
140 .B incm
141 with the
142 .B \-b
143 option results in:
144 .nf
145 cur/{1,2,3,4}
146 new/{}
147 to inbox: {3,4}
148 .fi
149 .PP
150 Executing
151 .B incm
152 with the
153 .B \-a
154 option and the
155 .B \-b
156 option results in:
157 .nf
158 cur/{1,2,3,4}
159 new/{}
160 to inbox: {1,2,3,4}
161 .fi
162 So, if both options are specified,
163 messages are retrieved multiple times.
164 .\"