mhmail: For mailx(1) compat: A period alone on a line means EOF.
[mmh] / man / mhmail.man1
index ce298d7..78567d8 100644 (file)
@@ -9,14 +9,14 @@ mhmail \- send mail
 .na
 .B mhmail
 .IR addrs ...
 .na
 .B mhmail
 .IR addrs ...
-.RB [ \-body
-.IR text ]
 .RB [ \-cc
 .IR addrs ...]
 .RB [ \-from
 .IR addr ]
 .RB [ \-subject
 .IR subject ]
 .RB [ \-cc
 .IR addrs ...]
 .RB [ \-from
 .IR addr ]
 .RB [ \-subject
 .IR subject ]
+.RB [ \-bodytext
+.IR text ]
 .RB [ \-Version ]
 .RB [ \-help ]
 .ad
 .RB [ \-Version ]
 .RB [ \-help ]
 .ad
@@ -64,35 +64,42 @@ The
 .B \-subject
 .I subject
 switch can be used to specify the
 .B \-subject
 .I subject
 switch can be used to specify the
-\*(lqSubject:\*(rq field of the message.
+`Subject:' field of the message.
 .PP
 By default,
 .B mhmail
 will read the message to be sent from the
 .PP
 By default,
 .B mhmail
 will read the message to be sent from the
-standard input.  You can specify the text of the message at the command
+standard input.
+The message is terminated by either end-of-file or by a single period
+alone on a line. This is compatible to
+.B mail
+and
+.BR mailx .
+Alternatively, you can specify the text of the message at the command
 line with the
 line with the
-.B \-body
+.B \-bodytext
 .I text
 .I text
-switch.  If the standard input has zero
-length,
+switch.
+.PP
+If the standard input has zero length,
 .B mhmail
 .B mhmail
-will not send the message.  You can use the switch
-.B \-body
-\*(lq\*(rq to force an empty message.
+will not send the message.  You can use
+.B \-bodytext
+"" to force an empty message.
 .PP
 .PP
-Normally, addresses appearing as arguments are put in the \*(lqTo:\*(rq
+Normally, addresses appearing as arguments are put in the `To:'
 field.  If the
 .B \-cc
 switch is used, all addresses following it are
 field.  If the
 .B \-cc
 switch is used, all addresses following it are
-placed in the \*(lqCc:\*(rq field.
+placed in the `Cc:' field.
 .PP
 By using
 .B \-from
 .IR addr ,
 .PP
 By using
 .B \-from
 .IR addr ,
-you can specify the \*(lqFrom:\*(rq header of
+you can specify the `From:' header of
 the draft.  Naturally,
 .B post
 the draft.  Naturally,
 .B post
-will fill\-in the \*(lqSender:\*(rq
+will fill\-in the `Sender:'
 header correctly.
 
 .SH FILES
 header correctly.
 
 .SH FILES