b2c2cf49f0de2d32a0ae826c97fedc0a98e0e146
[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 [ \-verbose " | " \-noverbose ]
12 .RB [ msg
13 \&...]
14 .RB [ \-Version ]
15 .RB [ \-help ]
16 .ad
17 .SH DESCRIPTION
18 .B Send
19 will cause each of the specified messages to be delivered
20 to each of the destinations in the `To:', `Cc:',
21 `Bcc:', `Dcc:', and `Fcc:' fields of the message.  If
22 .B send
23 is re\-distributing a message, as invoked from
24 .BR dist ,
25 then the
26 corresponding `Resent\-xxx' fields are examined instead.
27 .PP
28 .B send
29 uses the program
30 .B spost
31 to do the actual delivery of the messages.
32 Most of the features attributed to
33 .B send
34 are actually performed by
35 .BR spost .
36 .PP
37 The draft is scanned for attachment header fields.
38 Their name defaults to ``Attach'', but may be changed by the value of the
39 .I Attachment-Header
40 profile entry.
41 If such header fields are found, or the body contains non-ASCII characters,
42 the message is converted to a MIME message.
43 This conversion occurs before all other processing.
44 .PP
45 The first part of the MIME message is the draft body if the body is non-empty.
46 The body of each attachment header field is interpreted as a file name,
47 and each file named is included as a separate part in the MIME message.
48 .PP
49 The MIME type of each file is determined by the MIME type query program,
50 as defined by the
51 .I Mime-Type-Query
52 profile entry.
53 Mmh distributes the program
54 .BR print-mimetype ,
55 in case no better alternative is available on the system.
56 .PP
57 The last component of the path name is taken as the name of the MIME parts.
58 A message part header for an attachment might be:
59 .PP
60 .nf
61 Content-Type: text/plain; name="VERSION"; charset="us-ascii"
62 Content-Description: VERSION
63 Content-Disposition: attachment; filename="VERSION"
64 .fi
65 .PP
66 If
67 .B \-verbose
68 is specified,
69 .B send
70 will request verbose information of the transport system.
71 .PP
72 .B Send
73 with no
74 .I msg
75 argument will send the current message in the draft folder.
76 .B Send
77 always takes messages from the draft folder.
78 (But, a
79 .I +folder
80 argument might be added in the future.)
81 Consult the
82 .BR mh-draft (7)
83 man page for more information.
84 .PP
85 Once the transport system has successfully accepted custody of the
86 message, the message will be renamed with a leading comma, which allows
87 it to be retrieved until the next draft message is sent.  If there are
88 errors in the formatting of the message,
89 .B send
90 will abort with a
91 (hopefully) helpful error message.
92 .PP
93 If a `Bcc:' field is encountered, its addresses will be used for
94 delivery, and the `Bcc:' field will be removed from the message
95 sent to sighted recipients.  The blind recipients will receive an entirely
96 new message with a minimal set of headers.  Included in the body of the
97 message will be a copy of the message sent to the sighted recipients.
98 .PP
99 If a `Dcc:' field is encountered, its addresses will be used for
100 delivery, and the `Dcc:' field will be removed from the message.  The
101 blind recipients will receive the same message sent to the sighted
102 recipients. *WARNING* Recipients listed in the `Dcc:' field receive no
103 explicit indication that they have received a `blind copy'.
104 This can cause blind recipients to
105 inadvertently reply to all of the sighted recipients of the
106 original message, revealing that they received a blind copy.
107 On the other hand, since a normal reply to a message sent
108 via a `Bcc:' field
109 will generate a reply only to the sender of the original message,
110 it takes extra effort in most mailers to reply to the included
111 message, and so would usually only be done deliberately, rather
112 than by accident.
113 .PP
114 Prior to sending the message, the fields `From:\ user@local',
115 and `Date:\ now' will be appended to the headers in the message.
116 If the environment variable
117 .B $SIGNATURE
118 is set, then its value
119 is used as your personal name when constructing the `From:'
120 line of the message.  If this environment variable is not set, then
121 .B send
122 will consult the profile entry `Signature' for
123 this information.
124 .PP
125 If
126 .B send
127 is re\-distributing a message (when invoked by
128 .BR dist ),
129 then `Resent\-' will be prepended to each of these
130 fields: `From:', `Date:', and `Message\-ID:'.
131 If the message already contains a `From:' field, then a
132 `Sender: user@local' field will be added as well.  (An already
133 existing `Sender:' field is an error!)
134 .PP
135 If an `Fcc:\ folder' is encountered, the message will be copied
136 to the specified folder for the sender in the format in which it will
137 appear to any non\-Bcc receivers of the message.  That is, it will have
138 the appended fields and field reformatting.  The `Fcc:' fields
139 will be removed from all outgoing copies of the message.
140 .PP
141 The files specified by the profile entry `Aliasfile:' will be read.
142 See
143 .BR mh\-alias (5)
144 for more information.
145
146 .SH FILES
147 .fc ^ ~
148 .nf
149 .ta \w'%etcdir%/ExtraBigFileName  'u
150 ^$HOME/.mmh/profile~^The user profile
151 ^+drafts~^The draft folder
152 .fi
153
154 .SH "PROFILE COMPONENTS"
155 .fc ^ ~
156 .nf
157 .ta 2.4i
158 .ta \w'ExtraBigProfileName  'u
159 ^Path:~^To determine the user's mail storage
160 ^Draft\-Folder:~^To set the default draft\-folder
161 ^Aliasfile:~^For a default alias file
162 ^Signature:~^To determine the user's mail signature
163 ^Attachment\-Header:~^To set the name of the attachment header field
164 ^Mime\-Type\-Query:~^Program to determine the MIME types of files
165 .fi
166
167 .SH "SEE ALSO"
168 comp(1), dist(1), forw(1), repl(1), mh\-alias(5), spost(8)
169
170 .SH DEFAULTS
171 .nf
172 .RB ` msg "' defaults to the current message in the draft folder"
173 .RB ` \-noverbose '
174 .fi
175
176 .SH CONTEXT
177 None
178
179 .SH BUGS
180 None