talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit e9ddc1bd3b04aca4d1803014fa6ac9af43480715
parent d9dab228c06ce2b968ecee7dcccd4d2cc494935c
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:
Msrc/compose.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compose.c b/src/compose.c @@ -8847,8 +8847,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();