Removed the -width switch from send, spost and repl.
[mmh] / man / send.man1
1 .\"
2 .\" %nmhwarning%
3 .\"
4 .TH SEND %manext1% "%nmhdate%" MH.6.8 [%nmhversion%]
5 .SH NAME
6 send \- send a message
7 .SH SYNOPSIS
8 .HP 5
9 .na
10 .B send
11 .RB [ \-alias
12 .IR aliasfile ]
13 .RB [ \-filter
14 .IR filterfile ]
15 .RB [ \-nofilter ]
16 .RB [ \-format " | " \-noformat ]
17 .RB [ \-forward " | " \-noforward ]
18 .RB [ \-push " | " \-nopush ]
19 .RB [ \-verbose " | " \-noverbose ]
20 .RB [ \-watch " | " \-nowatch ]
21 .RB [ msg
22 \&...]
23 .RB [ \-version ]
24 .RB [ \-help ]
25 .ad
26 .SH DESCRIPTION
27 .B Send
28 will cause each of the specified messages to be delivered
29 to each of the destinations in the \*(lqTo:\*(rq, \*(lqCc:\*(rq,
30 \*(lqBcc:\*(rq, \*(lqDcc:\*(rq, and \*(lqFcc:\*(rq fields of the message.  If
31 .B send
32 is re\-distributing a message, as invoked from
33 .BR dist ,
34 then the
35 corresponding \*(lqResent\-xxx\*(rq fields are examined instead.
36 .PP
37 By default,
38 .B send
39 uses the program
40 .B post
41 to do the actual
42 delivery of the messages, although this can be changed by defining the
43 .I postproc
44 profile component.  Most of the features attributed to
45 .B send
46 are actually performed by
47 .BR post .
48 .PP
49 The draft is scanned for attachment header fields.
50 Their name defaults to ``Attach'', but may be changed by the value of the
51 .I Attachment-Header
52 profile entry.
53 If such header fields are found, or the body contains non-ASCII characters,
54 the message is converted to a MIME message.
55 This conversion occurs before all other processing.
56 .PP
57 The first part of the MIME message is the draft body if the body is non-empty.
58 The body of each attachment header field is interpreted as a file name,
59 and each file named is included as a separate part in the MIME message.
60 .PP
61 For file names with dot suffixes, the context is scanned for a
62 .I mhshow-suffix-
63 entry for that suffix.
64 The content-type for the part is taken from that context entry if a match is
65 found.
66 If no match is found or the file does not have a dot suffix, the content-type
67 is text/plain if the file contains only ASCII characters or
68 application/octet-stream otherwise.
69 .PP
70 The last component of the path name is taken as the name of the MIME parts.
71 A message part header for an attachment might be:
72 .PP
73 .nf
74 Content-Type: text/plain; name="VERSION"; charset="us-ascii"
75 Content-Disposition: attachment; filename="VERSION"
76 .fi
77 .PP
78 If
79 .B \-push
80 is specified,
81 .B send
82 will detach itself from the user's
83 terminal and perform its actions in the background.  If
84 .BR push 'd
85 and the draft can't be sent, then an error message will be sent (using
86 the mailproc) back to the user.  If
87 .B \-forward
88 is given, then a copy
89 of the draft will be attached to this failure notice.  Using
90 .B \-push
91 differs from putting
92 .B send
93 in the background because the output is
94 trapped and analyzed by
95 .BR nmh .
96 .PP
97 If
98 .B \-verbose
99 is specified,
100 .B send
101 will indicate the interactions
102 occurring with the transport system, prior to actual delivery.
103 If
104 .B \-watch
105 is specified
106 .B send
107 will monitor the delivery of local
108 and network mail.  Hence, by specifying both switches, a large detail
109 of information can be gathered about each step of the message's entry
110 into the transport system.
111 .PP
112 .B Send
113 with no
114 .I msg
115 argument will send the current message in the draft folder.
116 .B Send
117 always takes messages from the draft folder.
118 (But, a
119 .I +folder
120 argument might be added in the future.)
121 Consult the
122 .BR mh-draft (7)
123 man page for more information.
124 .PP
125 Once the transport system has successfully accepted custody of the
126 message, the message will be renamed with a leading comma, which allows
127 it to be retrieved until the next draft message is sent.  If there are
128 errors in the formatting of the message,
129 .B send
130 will abort with a
131 (hopefully) helpful error message.
132 .PP
133 If a \*(lqBcc:\*(rq field is encountered, its addresses will be used for
134 delivery, and the \*(lqBcc:\*(rq field will be removed from the message
135 sent to sighted recipients.  The blind recipients will receive an entirely
136 new message with a minimal set of headers.  Included in the body of the
137 message will be a copy of the message sent to the sighted recipients.
138 .PP
139 If a \*(lqDcc:\*(rq field is encountered, its addresses will be used for
140 delivery, and the \*(lqDcc:\*(rq field will be removed from the message.  The
141 blind recipients will receive the same message sent to the sighted
142 recipients. *WARNING* Recipients listed in the \*(lqDcc:\*(rq field receive no
143 explicit indication that they have received a \*(lqblind copy\*(rq.
144 This can cause blind recipients to
145 inadvertently reply to all of the sighted recipients of the
146 original message, revealing that they received a blind copy.
147 On the other hand, since a normal reply to a message sent
148 via a \*(lqBcc:\*(rq field
149 will generate a reply only to the sender of the original message,
150 it takes extra effort in most mailers to reply to the included
151 message, and so would usually only be done deliberately, rather
152 than by accident.
153 .PP
154 If
155 .B \-filter
156 .I filterfile
157 is specified, then this copy is filtered
158 (re\-formatted) by
159 .B mhl
160 prior to being sent to the blind recipients.
161 .PP
162 Prior to sending the message, the fields \*(lqFrom:\ user@local\*(rq,
163 and \*(lqDate:\ now\*(rq will be appended to the headers in the message.
164 If the environment variable
165 .B $SIGNATURE
166 is set, then its value
167 is used as your personal name when constructing the \*(lqFrom:\*(rq
168 line of the message.  If this environment variable is not set, then
169 .B send
170 will consult the profile entry \*(lqSignature\*(rq for
171 this information.
172 .PP
173 If
174 .B send
175 is re\-distributing a message (when invoked by
176 .BR dist ),
177 then \*(lqResent\-\*(rq will be prepended to each of these
178 fields: \*(lqFrom:\*(rq, \*(lqDate:\*(rq, and \*(lqMessage\-ID:\*(rq.
179 If the message already contains a \*(lqFrom:\*(rq field, then a
180 \*(lqSender: user@local\*(rq field will be added as well.  (An already
181 existing \*(lqSender:\*(rq field is an error!)
182 .PP
183 By using the
184 .B \-format
185 switch, each of the entries in the \*(lqTo:\*(rq
186 and \*(lqCc:\*(rq fields will be replaced with \*(lqstandard\*(rq
187 format entries.  This standard format is designed to be usable by all
188 of the message handlers on the various systems around the Internet.
189 If
190 .B \-noformat
191 is given, then headers are output exactly as they appear
192 in the message draft.
193 .PP
194 If an \*(lqFcc:\ folder\*(rq is encountered, the message will be copied
195 to the specified folder for the sender in the format in which it will
196 appear to any non\-Bcc receivers of the message.  That is, it will have
197 the appended fields and field reformatting.  The \*(lqFcc:\*(rq fields
198 will be removed from all outgoing copies of the message.
199 .PP
200 The files specified by the profile entry \*(lqAliasfile:\*(rq and any
201 additional alias files given by the
202 .B \-alias
203 .I aliasfile
204 switch will be
205 read (more than one file, each preceded by
206 .BR \-alias ,
207 can be named).
208 See
209 .BR mh\-alias (5)
210 for more information.
211
212 .SH FILES
213 .fc ^ ~
214 .nf
215 .ta \w'%etcdir%/ExtraBigFileName  'u
216 ^$HOME/.mmh/profile~^The user profile
217 ^+drafts~^The draft folder
218 .fi
219
220 .SH "PROFILE COMPONENTS"
221 .fc ^ ~
222 .nf
223 .ta 2.4i
224 .ta \w'ExtraBigProfileName  'u
225 ^Path:~^To determine the user's mail storage
226 ^Draft\-Folder:~^To set the default draft\-folder
227 ^Aliasfile:~^For a default alias file
228 ^Signature:~^To determine the user's mail signature
229 ^Attachment\-Header:~^To set the name of the attachment header field
230 ^mailproc:~^Program to post failure notices
231 ^postproc:~^Program to post the message
232 .fi
233
234 .SH "SEE ALSO"
235 comp(1), dist(1), forw(1), repl(1), mh\-alias(5), post(8)
236
237 .SH DEFAULTS
238 .nf
239 .RB ` msg "' defaults to the current message in the draft folder"
240 .RB ` \-nofilter '
241 .RB ` \-format '
242 .RB ` \-forward '
243 .RB ` \-nopush '
244 .RB ` \-noverbose '
245 .RB ` \-nowatch '
246 .fi
247
248 .SH CONTEXT
249 None
250
251 .SH BUGS
252 Under some configurations, it is not possible to monitor the mail delivery
253 transaction;
254 .B \-watch
255 is a no-op on those systems.