Robert Günzler: 1
Parse headers from template
1 files changed, 39 insertions(+), 3 deletions(-)
> On Mon Nov 25, 2019 at 1:39 PM, Robert Günzler wrote:
> > The motivation for this is keeping receiver, sender and subject
> > lines in the template file and generating the message subject with the
> > date functions.
>
>
> I'm not sure I understand. Can you explain your use-case in more detail?
I basically have a template for an email I'm sending monthly like this:
```
From: Robert <r+finance@gnzler.io>
Subject: Invoice for {{dateFormat .Date "January 2006"}}
To: client@exmaple.com
Hello,
this message has the invoice for {{dateFormat .Date "January 2006"}} attached.
Best regards,
Robert
```
I am trying to get rid of Thunderbird where templates contain the
message headers... I use them as blueprints for mail that I often send
to specific contacts.
Aha, that makes sense. Thanks for clarifying, I'll have this patch
reviewed shortly.
Thanks!
To git.sr.ht:~sircmpwn/aerc
c1d5797..31e3e9f master -> master
Whoops, I had to revert this. :reply -q fails with this patch, because
it tries to interpret the message body as headers.