diff options
author | Bence Ferdinandy <bence@ferdinandy.com> | 2024-05-30 11:30:18 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2024-06-05 08:41:13 +0200 |
commit | fd35044023b3b6cae4eb95c4f4b997873739b153 (patch) | |
tree | a46e7e7b0bb279d281bd785e9d0c259e8894ca20 /commands/compose/send.go | |
parent | 47c226687265ff29969fd73cdc69a938fae20d4c (diff) | |
download | aerc-fd35044023b3b6cae4eb95c4f4b997873739b153.tar.gz |
hooks: add AERC_ACCOUNT_BACKEND to hooks with AERC_ACCOUNT
It can be good to know the backend used for an account in a hook. Add
this information to all hooks that already pass the account name along.
Changelog-added: Added `AERC_ACCOUNT_BACKEND` to hooks with
`AERC_ACCOUNT`.
Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/compose/send.go')
-rw-r--r-- | commands/compose/send.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/compose/send.go b/commands/compose/send.go index fd39b48c..d8930056 100644 --- a/commands/compose/send.go +++ b/commands/compose/send.go @@ -223,6 +223,7 @@ func sendHelper(composer *app.Composer, header *mail.Header, uri *url.URL, domai composer.SetSent(archive) err = hooks.RunHook(&hooks.MailSent{ Account: composer.Account().Name(), + Backend: composer.Account().AccountConfig().Backend, Header: header, }) if err != nil { |