Commit 1beae8f5 1beae8f5c3cf5354a9320fb24b007f2a4242743f by Sergey Poznyakoff

Documented "editheaders" variable

1 parent 966b1d4c
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
10 * mail/reply.c: Likewise. 10 * mail/reply.c: Likewise.
11 * mail/util.c (util_msglist_esccmd): Declaration updated. 11 * mail/util.c (util_msglist_esccmd): Declaration updated.
12 12
13 * mail/var.c: Implemented "editheader" variable. 13 * mail/var.c: Implemented "editheaders" variable.
14 * doc/texinfo/programs.texi: Documented "editheaders" variable.
14 * mh/Makefile.am (install-exec-hook): Remove "folders" before 15 * mh/Makefile.am (install-exec-hook): Remove "folders" before
15 linking "folder" to it. 16 linking "folder" to it.
16 17
......
...@@ -915,9 +915,11 @@ using a text editor specified either by @code{EDITOR} or by ...@@ -915,9 +915,11 @@ using a text editor specified either by @code{EDITOR} or by
915 @code{VISUAL} environment variables. The @samp{~e} uses the former, 915 @code{VISUAL} environment variables. The @samp{~e} uses the former,
916 and @samp{~v} uses the latter. 916 and @samp{~v} uses the latter.
917 917
918 @emph{Please note}, that both commands allow you to edit the body of the 918 By default both escapes allow you to edit only the body of the
919 message, and not its headers. To change message headers, see 919 message. However, if the @code{editheaders} variable is set,
920 @ref{Modifying the Headers}. 920 @command{mail} will load into the editor the complete text of
921 the message with headers included, thus allowing you to change
922 the headers as well.
921 923
922 @node Modifying the Headers 924 @node Modifying the Headers
923 @subsubsection Modifying the Headers: ~h, ~t, ~c, ~b, ~s 925 @subsubsection Modifying the Headers: ~h, ~t, ~c, ~b, ~s
...@@ -1677,6 +1679,14 @@ be printed using program set in the environment variable @code{ENVIRON}. ...@@ -1677,6 +1679,14 @@ be printed using program set in the environment variable @code{ENVIRON}.
1677 If @code{True}, causes @command{mail} to interpret a period alone on a line as the 1679 If @code{True}, causes @command{mail} to interpret a period alone on a line as the
1678 terminator of a message you are sending. 1680 terminator of a message you are sending.
1679 1681
1682 @item editheaders
1683 @*Type: Boolean.
1684 @*Default: False.
1685
1686 When set, @command{mail} will include message headers in the text to
1687 be the @code{~e} and @code{~v} escapes, thus allowing you to customize
1688 the headers.
1689
1680 @item escape 1690 @item escape
1681 @*Type: String. 1691 @*Type: String.
1682 @*Default: ~ 1692 @*Default: ~
......