aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/triggers.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/config/triggers.go b/config/triggers.go
index 3187cf7b..847a10f3 100644
--- a/config/triggers.go
+++ b/config/triggers.go
@@ -37,9 +37,12 @@ func (trig *TriggersConfig) ExecNewEmail(account *AccountConfig,
err := trig.ExecTrigger(trig.NewEmail,
func(part string) (string, error) {
formatstr, args, err := format.ParseMessageFormat(
- account.From,
- part,
- conf.Ui.TimestampFormat, account.Name, 0, msg, false)
+ part, conf.Ui.TimestampFormat,
+ format.Ctx{
+ FromAddress: account.From,
+ AccountName: account.Name,
+ MsgInfo: msg},
+ )
if err != nil {
return "", err
}