From 48dfd66cae2811933b195b42d787e36b9e5d9298 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Tue, 11 Jan 2022 22:25:23 +0700 Subject: Expose in_reply_to substitution --- src/formbox.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/formbox.py b/src/formbox.py index 5e30faf..beb9246 100644 --- a/src/formbox.py +++ b/src/formbox.py @@ -77,7 +77,8 @@ def render(template, archive, parent): # Please don't have space in email addresses author = ' '.join(decode(self['From'])).rsplit(maxsplit=1)[0] rendered_children = render(template, archive, message_id) - yield template.format(message_id=quote(message_id), + yield template.format(in_reply_to=quote(parent), + message_id=quote(message_id), mailto_params=urlencode(dict(reply_to(self))), date=date(self).isoformat(), author=author, body=body, children='\n'.join(rendered_children)) -- cgit 1.4.1