aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorSrivathsan Murali <sri@vathsan.com>2019-11-12 12:50:00 +0100
committerDrew DeVault <sir@cmpwn.com>2019-11-17 13:19:20 -0500
commitc655afa32bea3208885386cc3e600d19c934dd39 (patch)
tree15ab3b45ba905339558ae3d5a64eeca6abb13659 /config
parent4bdef7d8609aa2d382fa74018e28ccb176276615 (diff)
downloadaerc-c655afa32bea3208885386cc3e600d19c934dd39.tar.gz
Complete the F rune.
%F now shows the auth name or recepient name/address if the message is from you.
Diffstat (limited to 'config')
-rw-r--r--config/triggers.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/triggers.go b/config/triggers.go
index d31f267b..f68cb585 100644
--- a/config/triggers.go
+++ b/config/triggers.go
@@ -36,7 +36,9 @@ func (trig *TriggersConfig) ExecNewEmail(account *AccountConfig,
conf *AercConfig, msg *models.MessageInfo) {
err := trig.ExecTrigger(trig.NewEmail,
func(part string) (string, error) {
- formatstr, args, err := format.ParseMessageFormat(part,
+ formatstr, args, err := format.ParseMessageFormat(
+ account.From,
+ part,
conf.Ui.TimestampFormat, account.Name, 0, msg)
if err != nil {
return "", err