aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2022-01-19 20:57:48 +0100
committerRobin Jarry <robin@jarry.cc>2022-01-19 21:29:16 +0100
commit92bf89c3389b8e08cf99d30cf20a818529680f51 (patch)
tree7a2af50307bef8c8623ae22dbb3f2ab03993ba26
parentf0f7cf347c06953bcc9a68651ed70d52b0f41e93 (diff)
downloadaerc-92bf89c3389b8e08cf99d30cf20a818529680f51.tar.gz
aerc-92bf89c3389b8e08cf99d30cf20a818529680f51.zip
docs: mention missing -T options for compose and forward
A template file may be specified for compose and forward as well. Signed-off-by: Robin Jarry <robin@jarry.cc>
-rw-r--r--commands/account/compose.go2
-rw-r--r--config/aerc.conf.in4
-rw-r--r--doc/aerc-config.5.scd4
-rw-r--r--doc/aerc.1.scd18
4 files changed, 20 insertions, 8 deletions
diff --git a/commands/account/compose.go b/commands/account/compose.go
index f48fa691..62bf11d3 100644
--- a/commands/account/compose.go
+++ b/commands/account/compose.go
@@ -72,7 +72,7 @@ func buildBody(args []string) (string, string, error) {
}
posargs := args[optind:]
if len(posargs) > 1 {
- return "", template, errors.New("Usage: compose [-H] [body]")
+ return "", template, errors.New("Usage: compose [-H header] [-T template] [body]")
}
if len(posargs) == 1 {
body = posargs[0]
diff --git a/config/aerc.conf.in b/config/aerc.conf.in
index 1f5c87d3..4decaefd 100644
--- a/config/aerc.conf.in
+++ b/config/aerc.conf.in
@@ -224,12 +224,12 @@ new-email=
# default: @SHAREDIR@/templates/
template-dirs=@SHAREDIR@/templates/
-# The template to be used for quoted replies.
+# The default template to be used for quoted replies.
#
# default: quoted_reply
quoted-reply=quoted_reply
-# The template to be used for forward as body.
+# The default template to be used for forward as body.
#
# default: forward_as_body
forwards=forward_as_body
diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd
index 2ef4ebc4..067ad919 100644
--- a/doc/aerc-config.5.scd
+++ b/doc/aerc-config.5.scd
@@ -383,12 +383,12 @@ These options are configured in the *[templates]* section of aerc.conf.
Default: "/usr/share/aerc/templates"
*quoted-reply*
- The template to be used for quoted replies.
+ The default template to be used for quoted replies.
Default: "quoted_reply"
*forwards*
- The template to be used for forward as body.
+ The default template to be used for forward as body.
Default: "forward_as_body"
diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd
index aa96637c..bf870ea8 100644
--- a/doc/aerc.1.scd
+++ b/doc/aerc.1.scd
@@ -126,11 +126,17 @@ message list, the message in the message viewer, etc).
directory. The original message will be deleted only if it is in the
postpone directory.
-*forward* [-A] [address...]
+*forward* [-A] [-T <template-file>] [address...]
Opens the composer to forward the selected message to another recipient.
*-A*: Forward the message as an RFC 2822 attachment.
+ *-T* <template-file>
+ Use the specified template file for creating the initial
+ message body. Unless *-A* is specified, this defaults to what
+ is set as _forwards_ in the _[templates]_ section of
+ _aerc.conf_.
+
*move* <target>
Moves the selected message to the target folder.
@@ -153,7 +159,10 @@ message list, the message in the message viewer, etc).
*-q*: Insert a quoted version of the selected message into the reply editor
- *-T*: Use the specified template file for creating the initial message body
+ *-T* <template-file>
+ Use the specified template file for creating the initial
+ message body. If *-q* is specified, defaults to what is set as
+ _quoted-reply_ in the _[templates]_ section of _aerc.conf_.
*read* [-t]
Marks the marked or selected messages as read.
@@ -210,7 +219,7 @@ message list, the message in the message viewer, etc).
*cf* <folder>
Change the folder shown in the message list.
-*compose* [-H] [<body>]
+*compose* [-H] [<body>] [-T <template-file>]
Open the compose window to send a new email. The new email will be sent with
the current account's outgoing transport configuration. For details on
configuring outgoing mail delivery consult *aerc-config*(5).
@@ -218,6 +227,9 @@ message list, the message in the message viewer, etc).
*-H* <header>
Add the specified header to the message, e.g. 'compose -H "X-Custom: custom
value"'
+ *-T* <template-file>
+ Use the specified template file for creating the initial
+ message body.
*filter* [options] <terms...>
Similar to *search*, but filters the displayed messages to only the search