diff options
-rw-r--r-- | doc/aerc-config.5.scd | 1 | ||||
-rw-r--r-- | lib/hooks/mail-received.go | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/doc/aerc-config.5.scd b/doc/aerc-config.5.scd index 770a23de..b13d6e89 100644 --- a/doc/aerc-config.5.scd +++ b/doc/aerc-config.5.scd @@ -1129,6 +1129,7 @@ They are configured in the *[hooks]* section of aerc.conf. - *AERC_FROM_NAME* - *AERC_FROM_ADDRESS* - *AERC_SUBJECT* + - *AERC_MESSAGE_ID* Example: diff --git a/lib/hooks/mail-received.go b/lib/hooks/mail-received.go index 8f62be50..99d3ceef 100644 --- a/lib/hooks/mail-received.go +++ b/lib/hooks/mail-received.go @@ -25,5 +25,6 @@ func (m *MailReceived) Env() []string { fmt.Sprintf("AERC_FROM_NAME=%s", from.Name), fmt.Sprintf("AERC_FROM_ADDRESS=%s", from.Address), fmt.Sprintf("AERC_SUBJECT=%s", m.MsgInfo.Envelope.Subject), + fmt.Sprintf("AERC_MESSAGE_ID=%s", m.MsgInfo.Envelope.MessageId), } } |