commit 7e998163619bcedfb90835775dae93bf2042110b
parent 269c75cbdd5a9095578fb796f7ba5a13d20010ec
Author: wwp <wwp@free.fr>
Date: Tue, 3 Apr 2018 10:17:58 +0200
Fix broken templates attachments due to commit 814b087,
which clears template internals (including attachments list)
wherever template contains any field to apply (To/Subject/etc.)
and before attachments could be processed. Simply process
attachments before attachments list may be cleared by fields
processing. Ideally we should change quote_fmt_reset_vartable()
or its uses in compose.c at least.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/compose.c b/src/compose.c
@@ -8869,8 +8869,8 @@ static void compose_template_apply(Compose *compose, Template *tmpl,
/* process the other fields */
- compose_template_apply_fields(compose, tmpl);
compose_attach_from_list(compose, quote_fmt_get_attachments_list(), FALSE);
+ compose_template_apply_fields(compose, tmpl);
quote_fmt_reset_vartable();
quote_fmtlex_destroy();