4 .TH MHMAIL %manext1% "%nmhdate%" MH.6.8 [%nmhversion%]
6 mhmail \- send or read mail
36 is intended as a replacement for the standard Berkeley
41 which is compatible with
43 This program is intended for the use of programs such as
45 which expect to send mail automatically to various
46 users. It is also used by various
48 commands to mail various
49 error notifications. Although
51 can be used interactively,
52 it is recommended that
56 be used instead to send messages.
58 When invoked without arguments, it simply invokes
60 to incorporate new messages from the user's maildrop. When one or more users
61 is specified, a message is read from the standard input and spooled to
67 name of the temporary file as its argument to deliver the message to
73 switch can be used to specify the
74 \*(lqSubject:\*(rq field of the message.
78 switch indicates that the message body is a fully formed message that
81 would do. For example:
83 mhmail u2@example.com -resent < `mhpath cur`
87 will read the message to be sent from the
88 standard input. You can specify the text of the message at the command
92 switch. If the standard input has zero
95 will not send the message and return with status 1. You can use the switch
97 \*(lq\*(rq to force an empty message.
99 Normally, addresses appearing as arguments are put in the \*(lqTo:\*(rq
102 switch is used, all addresses following it, even if there are
103 intervening switches, are placed in the \*(lqcc:\*(rq field.
108 you can specify the \*(lqFrom:\*(rq header of
111 switch is used when sending,
113 will supply a \*(lqFrom:\*(rq header field using the sender's local mailbox.
116 will fill\-in the \*(lqSender:\*(rq
127 to send the message. This allows use of the user's context and aliases.
131 option shows the draft file that would be posted/sent and the command
132 that would be used to post/send the draft, but does not post or send
135 All other switches are passed on to
148 .ta \w'%etcdir%/ExtraBigFileName 'u
149 ^%bindir%/inc~^Program to incorporate maildrop into folder
150 ^%libdir%/post~^Program to deliver a message
151 ^/tmp/mhmail*~^Temporary copy of message
155 dist(1), inc(1), post(8), send(1)
165 context changes occur. With the
167 switch, the context of