diff options
author | Robin Jarry <robin@jarry.cc> | 2023-07-17 14:31:20 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-08-04 23:16:29 +0200 |
commit | d5210acf092f3c3346c363dbe3ce5ca899fb5a24 (patch) | |
tree | b84228cdb3ff6dbe914a4eae788fbaa9e93dca3e /doc/aerc-config.5.scd | |
parent | 24eab0f5ef6324b00717997f671cf1d13317bd5c (diff) | |
download | aerc-d5210acf092f3c3346c363dbe3ce5ca899fb5a24.tar.gz |
hooks: add account and folder to mail-received env
Add AERC_ACCOUNT and AERC_FOLDER to the environment of the mail-received
hook command.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Reviewed-by: Tristan Partin <tristan@partin.io>
Diffstat (limited to 'doc/aerc-config.5.scd')
-rw-r--r-- | doc/aerc-config.5.scd | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd index 0a4fd9eb..0cdad99b 100644 --- a/doc/aerc-config.5.scd +++ b/doc/aerc-config.5.scd @@ -878,13 +878,15 @@ They are configured in the *[hooks]* section of aerc.conf. Variables: + - *AERC_ACCOUNT* + - *AERC_FOLDER* - *AERC_FROM_NAME* - *AERC_FROM_ADDRESS* - *AERC_SUBJECT* Example: - *mail-received* = _notify-send "New mail from $AERC_FROM_NAME" "$AERC_SUBJECT"_ + *mail-received* = _notify-send "[$AERC_ACCOUNT/$AERC_FOLDER] New mail from $AERC_FROM_NAME" "$AERC_SUBJECT"_ *aerc-shutdown* = _<command>_ Executed when aerc shuts down. Aerc will wait for the command to finish |