34c4a221ca69d4e6776a4ac902a473ab6d4ed25e
[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 moved into the trash folder.
87 If there are errors in the formatting of the message,
88 .B send
89 will abort with a
90 (hopefully) helpful error message.
91 .PP
92 If a `Bcc:' field is encountered, its addresses will be used for
93 delivery, and the `Bcc:' field will be removed from the message
94 sent to sighted recipients.  The blind recipients will receive an entirely
95 new message with a minimal set of headers.  Included in the body of the
96 message will be a copy of the message sent to the sighted recipients.
97 .PP
98 If a `Dcc:' field is encountered, its addresses will be used for
99 delivery, and the `Dcc:' field will be removed from the message.  The
100 blind recipients will receive the same message sent to the sighted
101 recipients. *WARNING* Recipients listed in the `Dcc:' field receive no
102 explicit indication that they have received a `blind copy'.
103 This can cause blind recipients to
104 inadvertently reply to all of the sighted recipients of the
105 original message, revealing that they received a blind copy.
106 On the other hand, since a normal reply to a message sent
107 via a `Bcc:' field
108 will generate a reply only to the sender of the original message,
109 it takes extra effort in most mailers to reply to the included
110 message, and so would usually only be done deliberately, rather
111 than by accident.
112 .PP
113 Prior to sending the message, the fields `From:\ user@local',
114 and `Date:\ now' will be appended to the headers in the message.
115 If the environment variable
116 .B $SIGNATURE
117 is set, then its value
118 is used as your personal name when constructing the `From:'
119 line of the message.  If this environment variable is not set, then
120 .B send
121 will consult the profile entry `Signature' for
122 this information.
123 .PP
124 If
125 .B send
126 is re\-distributing a message (when invoked by
127 .BR dist ),
128 then `Resent\-' will be prepended to each of these
129 fields: `From:', `Date:', and `Message\-ID:'.
130 If the message already contains a `From:' field, then a
131 `Sender: user@local' field will be added as well.  (An already
132 existing `Sender:' field is an error!)
133 .PP
134 If an `Fcc:\ folder' is encountered, the message will be copied
135 to the specified folder for the sender in the format in which it will
136 appear to any non\-Bcc receivers of the message.  That is, it will have
137 the appended fields and field reformatting.  The `Fcc:' fields
138 will be removed from all outgoing copies of the message.
139 .PP
140 The files specified by the profile entry `Aliasfile:' will be read.
141 See
142 .BR mh\-alias (5)
143 for more information.
144
145 .SH FILES
146 .fc ^ ~
147 .nf
148 .ta \w'%etcdir%/ExtraBigFileName  'u
149 ^$HOME/.mmh/profile~^The user profile
150 ^+drafts~^The draft folder
151 .fi
152
153 .SH "PROFILE COMPONENTS"
154 .fc ^ ~
155 .nf
156 .ta 2.4i
157 .ta \w'ExtraBigProfileName  'u
158 ^Path:~^To determine the user's mail storage
159 ^Draft\-Folder:~^To set the default draft\-folder
160 ^Aliasfile:~^For a default alias file
161 ^Signature:~^To determine the user's mail signature
162 ^Attachment\-Header:~^To set the name of the attachment header field
163 ^Mime\-Type\-Query:~^Program to determine the MIME types of files
164 .fi
165
166 .SH "SEE ALSO"
167 comp(1), dist(1), forw(1), repl(1), mh\-alias(5), spost(8)
168
169 .SH DEFAULTS
170 .nf
171 .RB ` msg "' defaults to the current message in the draft folder"
172 .RB ` \-noverbose '
173 .fi
174
175 .SH CONTEXT
176 None
177
178 .SH BUGS
179 None