3 marshal \- formatting and sending mail
28 builds a mail message from standard input and passes it,
29 if the body is non-empty,
30 for transmission or delivery to
31 .BI /mail/box/ username /pipefrom
32 if it exists, otherwise to
34 The message format is both RFC 822 and
37 adds any required headers not already in the message, prefixed by
39 .BI /mail/box/ username /headers\f1.
40 This allows the addition of personal headers like
42 lines with a full name or a different
44 Command line options direct marshal to add a subject line
45 and append attachments. The arguments to
47 are the addresses of the recipients.
53 automatically puts the window into hold mode (see
55 this means that the message can be edited freely,
56 because nothing will be sent to
58 until the ESC key is hit to exit hold mode.
69 Unless explicitly specified by the
71 option, the type of the attachment is determined
79 but the message disposition is marked as
81 directing any mail reader to display the attachment
82 (if it can) when the mail message is read.
94 intentionally no standard input
97 are all passed as command line options to the
104 tells marshal what message this one is in reply to.
108 directory containing the message.
110 uses any message id in this message in its
112 field. It also passes the directory to
113 .BI /mail/box/ username /pipefrom
116 environment variable. Thus,
118 can alter the message to somehow match
119 the reply to the message it is replying to.
124 header line to the message if one does not
128 sets the content type for the attachments from
137 also expands any user mail aliases contained in
138 .BI /mail/box/ username /names.
139 The format of the alias file is the same as that
140 for system aliases, see
144 uses the login name as the reply address. This
145 can be overriden using the environment variable
147 Its value will become both the envelope
154 upasname=natasha@kremvax.com upas/mail boris@squirrel.com
158 .B /mail/box/*/dead.letter
161 .B /sys/src/cmd/upas/marshal