Add "Default-From" config option
[mmh] / man / spost.man8
index 695cd94..db783ef 100644 (file)
@@ -9,12 +9,7 @@ spost \- feed a message to sendmail
 .na
 .HP 5
 .B spost
-.RB [ \-alias
-.IR aliasfile
-.RB " | " \-noalias ]
-.RB [ \-dist ]
 .RB [ \-verbose " | " \-noverbose ]
-.RB [ \-watch " | " \-nowatch ]
 .I file
 .RB [ \-Version ]
 .RB [ \-help ]
@@ -38,18 +33,18 @@ acting as a preprocessor.
 Thus, it is
 .B spost
 which parses the various header fields, appends
-\*(lqFrom:\*(rq and \*(lqDate:\*(rq lines,
+`From:' and `Date:' lines,
 and finally feeds the message to the MTA.
 .B Spost
 will not normally be called directly by the user.
 .PP
 .B Spost
-searches the \*(lqTo:\*(rq, \*(lqCc:\*(rq, \*(lqBcc:\*(rq,
-\*(lqFcc:\*(rq, and \*(lqResent\-xxx:\*(rq header lines of the specified
+searches the `To:', `Cc:', `Bcc:',
+`Fcc:', and `Resent\-xxx:' header lines of the specified
 message for destination addresses,
 .PP
-If a \*(lqBcc:\*(rq field is encountered, its addresses will be used for
-delivery, and the \*(lqBcc:\*(rq field will be removed from the message
+If a `Bcc:' field is encountered, its addresses will be used for
+delivery, and the `Bcc:' field will be removed from the message
 sent to sighted recipients.  The blind recipients will receive a newly
 constructed message with a copy of the original message attached.
 MIME rules are used for encapsulation.
@@ -58,46 +53,43 @@ invokes
 .B send
 to send the Bcc message.)
 .PP
-The
-.B \-alias
-.I aliasfile
-switch can be used to specify a file that spost
-should take aliases from.  More than one file can be specified, each
-being preceded with
-.BR \-alias .
-In any event, the alias file, set with the `Aliasfile' profile entry, is
-read first.
+The `Aliasfile' profile entry
+can be used to specify one or more files that spost
+should take aliases from.
 .PP
 The
 .B \-verbose
-enables the output of informational messages.
-This option sets \-watch, too.
-.PP
-The
-.B \-watch
-switch adds the `\-v' switch to the
+switch enables informational messages.
+For example, the `\-v' switch will be added to the
 .B sendmail
 invocation.
 .PP
 .B Spost
-constructs the \*(lqFrom:\*(rq line of the
+puts the
+.RI ` Default-From '
+profile entry in the `From:' line of the message.
+If `Default-From' is not set,
+.B spost
+constructs the `From:' line of the
 message from the user's login name and the full name from the GECOS field
 of the passwd file.
-An example is \*(lqFrom: Dan Harkless <dan>\*(rq.
+An example is `From: Dan Harkless <dan>'.
 .PP
 If you set the
 .B $SIGNATURE
 environment variable.
 Its value overrides the full name from the GECOS field.
 .PP
-If you specify a \*(lqFrom:\*(rq
+If you specify a `From:'
 line manually in the message draft.
 It will be used as provided.
-However, a \*(lqSender:\*(rq header with the user's
+A `Sender:' header with the user's
 .B real
-address will be added.
+address will be added, if the `From' line don't contain a address
+from the user
+.RI ` Alternate-Mailboxes '.
 .PP
-Note that this applies equally to \*(lqResent\-From:\*(rq lines
+Note that this applies equally to `Resent\-From:' lines
 in messages sent with
 .BR dist .
 .PP
@@ -115,10 +107,14 @@ None
 .fi
 
 .SH "PROFILE COMPONENTS"
-.B spost
-does
-.B NOT
-consult the user's profile.
+.fc ^ ~
+.nf
+.ta 3.5i
+.ta \w'ExtraBigProfileName  'u
+^Aliasfile:~^For default alias files
+^Default\-From:~^The default From header
+^Alternate\-Mailboxes:~^The user's addresses
+.fi
 
 .SH "SEE ALSO"
 send(1), mh\-mail(5), mh\-alias(5), mh\-tailor(5), refile(1),
@@ -128,7 +124,6 @@ send(1), mh\-mail(5), mh\-alias(5), mh\-tailor(5), refile(1),
 .SH DEFAULTS
 .nf
 .RB ` \-noverbose '
-.RB ` \-nowatch '
 .fi
 
 .SH CONTEXT