Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by mail.sr.ht (Postfix) with ESMTPS id 49E1C400F6 for <~sircmpwn/aerc@lists.sr.ht>; Tue, 26 Nov 2019 16:47:36 +0000 (UTC) X-Originating-IP: 93.227.182.242 Received: from localhost (p5DE3B6F2.dip0.t-ipconnect.de [93.227.182.242]) (Authenticated sender: robert@gnzler.io) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id 83FB84000E; Tue, 26 Nov 2019 16:47:33 +0000 (UTC) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Originaldate: Mon Nov 25, 2019 at 12:00 PM Originalfrom: "Drew DeVault" Original: =?utf-8?q?On_Mon_Nov_25,_2019_at_1:39_PM,_Robert_G =C3=BCnzler_wrote:=0D?= =?utf-8?q? =0A>_The_motivation_for_this_is_keeping_receiver,_sender_and_su?= =?utf-8?q?bject=0D=0A>_lines_in_the_template_file_and_generating_the_mess?= =?utf-8?q?age_subject_with_the=0D=0A>_date_functions.=0D=0A=0D=0AI'm_not_?= =?utf-8?q?sure_I_understand._Can_you_explain_your_use-case_in_more_detail?= =?utf-8?q?=3F=0D=0A?= In-Reply-To: Date: Tue, 26 Nov 2019 17:47:18 +0100 Subject: Re: [PATCH] Parse headers from template From: "Robert Guenzler" To: "Drew DeVault" , =?utf-8?q?Robert_G=C3=BCnzler?= , <~sircmpwn/aerc@lists.sr.ht> Cc: =?utf-8?q?Robert_G=C3=BCnzler?= Message-Id: On Mon Nov 25, 2019 at 12:00 PM, Drew DeVault wrote: > On Mon Nov 25, 2019 at 1:39 PM, Robert G=C3=BCnzler 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. > >=20 > I'm not sure I understand. Can you explain your use-case in more detail? > >=20 I basically have a template for an email I'm sending monthly like this: ``` From: Robert Subject: Invoice for {{dateFormat .Date "January 2006"}} To: client@exmaple.com Hello, this message has the invoice for {{dateFormat .Date "January 2006"}} attach= ed. 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.