Removed the -[no]watch flags of send and post.
[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 [ \-alias
13 .IR aliasfile
14 .RB " | " \-noalias ]
15 .RB [ \-verbose " | " \-noverbose ]
16 .I file
17 .RB [ \-Version ]
18 .RB [ \-help ]
19 .ad
20 .SH DESCRIPTION
21 .B Spost
22 is the program called by
23 .B send
24 to feed the message in
25 .I file
26 to
27 .B sendmail
28 for delivery.  In fact, many of
29 the features attributed to
30 .B send
31 in its manual page are performed by
32 .BR spost ,
33 with
34 .B send
35 acting as a preprocessor.
36 Thus, it is
37 .B spost
38 which parses the various header fields, appends
39 `From:' and `Date:' lines,
40 and finally feeds the message to the MTA.
41 .B Spost
42 will not normally be called directly by the user.
43 .PP
44 .B Spost
45 searches the `To:', `Cc:', `Bcc:',
46 `Fcc:', and `Resent\-xxx:' header lines of the specified
47 message for destination addresses,
48 .PP
49 If a `Bcc:' field is encountered, its addresses will be used for
50 delivery, and the `Bcc:' field will be removed from the message
51 sent to sighted recipients.  The blind recipients will receive a newly
52 constructed message with a copy of the original message attached.
53 MIME rules are used for encapsulation.
54 .RB ( spost
55 invokes
56 .B send
57 to send the Bcc message.)
58 .PP
59 The
60 .B \-alias
61 .I aliasfile
62 switch can be used to specify a file that spost
63 should take aliases from.  More than one file can be specified, each
64 being preceded with
65 .BR \-alias .
66 In any event, the alias file, set with the `Aliasfile' profile entry, is
67 read first.
68 .PP
69 The
70 .B \-verbose
71 switch enables informational messages.
72 For example, the `\-v' switch will be added to the
73 .B sendmail
74 invocation.
75 .PP
76 .B Spost
77 constructs the `From:' line of the
78 message from the user's login name and the full name from the GECOS field
79 of the passwd file.
80 An example is `From: Dan Harkless <dan>'.
81 .PP
82 If you set the
83 .B $SIGNATURE
84 environment variable.
85 Its value overrides the full name from the GECOS field.
86 .PP
87 If you specify a `From:'
88 line manually in the message draft.
89 It will be used as provided.
90 However, a `Sender:' header with the user's
91 .B real
92 address will be added.
93 .PP
94 Note that this applies equally to `Resent\-From:' lines
95 in messages sent with
96 .BR dist .
97 .PP
98 Your MTA is supposed to care to fully qualitfy the addresses
99 with the correct domain name.
100 .PP
101 The draft is filed to the folders in the Fcc headers by
102 .BR refile .
103
104 .SH FILES
105 .fc ^ ~
106 .nf
107 .ta \w'ExtraBigFileName  'u
108 None
109 .fi
110
111 .SH "PROFILE COMPONENTS"
112 .B spost
113 does
114 .B NOT
115 consult the user's profile.
116
117 .SH "SEE ALSO"
118 send(1), mh\-mail(5), mh\-alias(5), mh\-tailor(5), refile(1),
119 .I "Standard for the Format of ARPA Internet Text Messages"
120 (RFC\-822)
121
122 .SH DEFAULTS
123 .nf
124 .RB ` \-noverbose '
125 .fi
126
127 .SH CONTEXT
128 None
129
130 .SH BUGS
131 Spost does not qualify addresses.
132 .PP
133 Spost does only basic processing and checking, yet.