reimplement Dcc-field
[mmh] / man / spost.man8
1 .\"
2 .\" %nmhwarning%
3 .\"
4 .TH SPOST %manext8% "%nmhdate%" MH.6.8 [%nmhversion%]
5 .SH NAME
6 spost \- feed a message to sendmail
7 .SH SYNOPSIS
8 .HP 5
9 .na
10 .HP 5
11 .B spost
12 .RB [ \-verbose " | " \-noverbose ]
13 .I file
14 .RB [ \-Version ]
15 .RB [ \-help ]
16 .ad
17 .SH DESCRIPTION
18 .B Spost
19 is the program called by
20 .B send
21 to feed the message in
22 .I file
23 to
24 .B sendmail
25 for delivery.  In fact, many of
26 the features attributed to
27 .B send
28 in its manual page are performed by
29 .BR spost ,
30 with
31 .B send
32 acting as a preprocessor.
33 Thus, it is
34 .B spost
35 which parses the various header fields, appends
36 `From:' and `Date:' lines,
37 and finally feeds the message to the MTA.
38 .B Spost
39 will not normally be called directly by the user.
40 .PP
41 .B Spost
42 searches the `To:', `Cc:', `Bcc:', `Dcc',
43 `Fcc:', and `Resent\-xxx:' header lines of the specified
44 message for destination addresses,
45 .PP
46 .B Sendmail
47 is called witch all recipients, expect these from Bcc-field
48 .br
49 .B sendmail
50 .B \-i
51 .RB [ \-v ]
52 .I recipients ...
53 .PP
54 If a `Bcc:' field is encountered, its addresses will be used for
55 delivery, and the `Bcc:' field will be removed from the message
56 sent to sighted recipients.  The blind recipients will receive a newly
57 constructed message with a copy of the original message attached.
58 MIME rules are used for encapsulation.
59 .RB ( spost
60 invokes
61 .B send
62 to send the Bcc message.)
63 .PP
64 If a `Dcc' field is encountered, the field will be removed
65 befor sending the mail.
66 .PP
67 The `Aliasfile' profile entry
68 can be used to specify one or more files that spost
69 should take aliases from.
70 .PP
71 Aliasing is done on any address-field will.
72 The address-fields are `From:', `To:', `Bcc:', `Dcc'
73 or rather the `Resent\-xxx:' versions of this fields.
74 .PP
75 The
76 .B \-verbose
77 switch enables informational messages.
78 For example, the `\-v' switch will be added to the
79 .B sendmail
80 invocation.
81 .PP
82 .B Spost
83 puts the
84 .RI ` Default-From '
85 profile entry in the `From:' line of the message.
86 If `Default-From' is not set,
87 .B spost
88 constructs the `From:' line of the
89 message from the user's login name and the full name from the GECOS field
90 of the passwd file.
91 An example is `From: Dan Harkless <dan>'.
92 .PP
93 If you set the
94 .B $SIGNATURE
95 environment variable.
96 Its value overrides the full name from the GECOS field.
97 .PP
98 If you specify a `From:'
99 line manually in the message draft.
100 It will be used as provided.
101 A `Sender:' header with the user's
102 .B real
103 address will be added, if the `From' line don't contain a address
104 from the user
105 .RI ` Alternate-Mailboxes '.
106 .PP
107 Note that this applies equally to `Resent\-From:' lines
108 in messages sent with
109 .BR dist .
110 .PP
111 .B Spost
112 takes care about full qualitfy addresses,
113 in every address-field.
114 Your MTA is supposed to care to add the correct domain,
115 if there is no after aliasing.
116 .PP
117 The draft is filed to the folders in the Fcc headers by
118 .BR refile .
119
120 .SH FILES
121 .fc ^ ~
122 .nf
123 .ta \w'ExtraBigFileName  'u
124 None
125 .fi
126
127 .SH "PROFILE COMPONENTS"
128 .fc ^ ~
129 .nf
130 .ta 3.5i
131 .ta \w'ExtraBigProfileName  'u
132 ^Aliasfile:~^For default alias files
133 ^Default\-From:~^The default From header
134 ^Alternate\-Mailboxes:~^The user's addresses
135 .fi
136
137 .SH "SEE ALSO"
138 send(1), mh\-mail(5), mh\-alias(5), mh\-tailor(5), refile(1),
139 .I "Standard for the Format of ARPA Internet Text Messages"
140 (RFC\-822)
141
142 .SH DEFAULTS
143 .nf
144 .RB ` \-noverbose '
145 .fi
146
147 .SH CONTEXT
148 None
149
150 .SH BUGS
151 None