3 marshal \- formatting and sending mail
32 builds a mail message from standard input and passes it,
33 if the body is non-empty,
34 for transmission or delivery to
35 .BI /mail/box/ username /pipefrom
36 if it exists, otherwise to
38 The message format is both RFC 822 and
41 adds any required headers not already in the message, prefixed by
43 .BI /mail/box/ username /headers\f1.
44 This allows the addition of personal headers like
46 lines with a full name or a different
48 Command line options direct marshal to add a subject line
49 and append attachments. The arguments to
51 are the addresses of the recipients.
57 automatically puts the window into hold mode (see
59 this means that the message can be edited freely,
60 because nothing will be sent to
62 until the ESC key is hit to exit hold mode.
73 Unless explicitly specified by the
75 option, the type of the attachment is determined
83 but the message disposition is marked as
85 directing any mail reader to display the attachment
86 (if it can) when the mail message is read.
101 intentionally no standard input
104 are all passed as command line options to the
111 tells marshal what message this one is in reply to.
115 directory containing the message.
117 uses any message id in this message in its
119 field. It also passes the directory to
120 .BI /mail/box/ username /pipefrom
123 environment variable. Thus,
125 can alter the message to somehow match
126 the reply to the message it is replying to.
131 header line to the message if one does not
135 sets the content type for the attachments from
146 pgp encrypt the message
153 ) from RFC 822 header of the message
157 also expands any user mail aliases contained in
158 .BI /mail/box/ username /names.
159 The format of the alias file is the same as that
160 for system aliases, see
164 uses the login name as the reply address. This
165 can be overriden using the environment variable
167 Its value will become both the envelope
174 upasname=natasha@kremvax.com upas/mail boris@squirrel.com
178 .B /mail/box/*/dead.letter
181 .B /sys/src/cmd/upas/marshal