diff options
author | Bence Ferdinandy <bence@ferdinandy.com> | 2024-01-04 21:02:19 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-01-08 00:02:21 +0100 |
commit | b76bf1b7eecfc885798385960b04b92cb62d75f0 (patch) | |
tree | 33f3b20d6e1e686685eb9d62415a06053009ad10 /templates/quoted_reply | |
parent | f41a39578f0319d255f32fc08cef6b7b73d6bdac (diff) | |
download | aerc-b76bf1b7eecfc885798385960b04b92cb62d75f0.tar.gz |
templates: move signature from compose to templates
Currently, when composing a new message, everything is read from the
template files, except the signature, which is added directly in the
compose code. Add a new template variable {{.Signature}}, by moving the
logic of reading signature from command or file from compose to
templates. Update the various default template files to preserve the
original placement of signatures. Users using the default templates
should not notice the change. Users with custom compose templates will
need to update their templates with {{.Signature}}.
Changelog-changed: Signature placement is now controlled via the
`{{.Signature}}` template variable and not hardcoded.
Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'templates/quoted_reply')
-rw-r--r-- | templates/quoted_reply | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/quoted_reply b/templates/quoted_reply index 95162172..147a4fa5 100644 --- a/templates/quoted_reply +++ b/templates/quoted_reply @@ -2,3 +2,5 @@ X-Mailer: aerc {{version}} On {{dateFormat (.OriginalDate | toLocal) "Mon Jan 2, 2006 at 3:04 PM MST"}}, {{(index .OriginalFrom 0).Name}} wrote: {{trimSignature .OriginalText | quote}} + +{{.Signature}} |