aboutsummaryrefslogtreecommitdiffstats
path: root/doc/aerc-config.5.scd
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2024-01-22 18:28:17 +0100
committerRobin Jarry <robin@jarry.cc>2024-01-25 21:55:23 +0100
commit0e592b28802fe7d972dac2b4958284b9eaf274a0 (patch)
tree8830a87ea58cdd7b65e07548e71e06195de4ae05 /doc/aerc-config.5.scd
parent1980744f7bf9e147abf649d37a2fa7dddd4e7254 (diff)
downloadaerc-0e592b28802fe7d972dac2b4958284b9eaf274a0.tar.gz
hook: add mail-sent hook
Add a hook to trigger when a message is sent. References: https://todo.sr.ht/~rjarry/aerc/136 Signed-off-by: Moritz Poldrack <git@moritz.sh> Tested-by: Bence Ferdinandy <bence@ferdinandy.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'doc/aerc-config.5.scd')
-rw-r--r--doc/aerc-config.5.scd18
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd
index f3d45085..043b738a 100644
--- a/doc/aerc-config.5.scd
+++ b/doc/aerc-config.5.scd
@@ -1021,6 +1021,24 @@ They are configured in the *[hooks]* section of aerc.conf.
*mail-added* = _mbsync "$AERC_ACCOUNT:$AERC_FOLDER"_
+*mail-sent* = _<command>_
+ Executed when a message is sent. This does not necessarily signify
+ successful posting, if a queueing system like msmtpq is used.
+
+ Variables:
+
+ - *AERC_ACCOUNT*
+ - *AERC_FROM_NAME*
+ - *AERC_FROM_ADDRESS*
+ - *AERC_SUBJECT*
+ - *AERC_TO*
+ - *AERC_CC*
+
+ Example:
+
+ *mail-sent* = _if [ "$AERC_ACCOUNT" = "gmail" ]; then mbsync
+ gmail; fi_
+
*aerc-shutdown* = _<command>_
Executed when aerc shuts down. Aerc will wait for the command to finish
before exiting.