diff options
Diffstat (limited to 'lib/hooks/mail-received.go')
-rw-r--r-- | lib/hooks/mail-received.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/hooks/mail-received.go b/lib/hooks/mail-received.go index 66622e9e..8f62be50 100644 --- a/lib/hooks/mail-received.go +++ b/lib/hooks/mail-received.go @@ -8,6 +8,8 @@ import ( ) type MailReceived struct { + Account string + Folder string MsgInfo *models.MessageInfo } @@ -18,6 +20,8 @@ func (m *MailReceived) Cmd() string { func (m *MailReceived) Env() []string { from := m.MsgInfo.Envelope.From[0] return []string{ + fmt.Sprintf("AERC_ACCOUNT=%s", m.Account), + fmt.Sprintf("AERC_FOLDER=%s", m.Folder), 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), |