compose: allow setting all headers in templates

Allow setting To, Cc, Subject, Bcc in template headers.

Fixes: https://todo.sr.ht/~rjarry/aerc/19
Signed-off-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
Robin Jarry 2022-02-03 09:54:23 +01:00
parent 77b3a141a4
commit dc6fd7c15e
2 changed files with 6 additions and 2 deletions
widgets

View file

@ -109,11 +109,11 @@ func NewComposer(aerc *Aerc, acct *AccountView, conf *config.AercConfig,
focused: 1,
completer: cmpl,
}
c.buildComposeHeader(aerc, cmpl)
if err := c.AddTemplate(template, templateData); err != nil {
return nil, err
}
c.buildComposeHeader(aerc, cmpl)
c.AddSignature()
c.updateGrid()