From 44439c698fae09acbd3c363f26cd20386d6282c6 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 16 Apr 2020 10:16:20 -0400 Subject: Render message links before to/cc --- html.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/html.c b/html.c index 352e229..677bed0 100644 --- a/html.c +++ b/html.c @@ -102,7 +102,7 @@ static char *htmlMbox(const struct Envelope *envelope) { int htmlMessageOpen(FILE *file, const struct Envelope *envelope) { // TODO: Conditionally include mailto: link. - const char *template1 = TEMPLATE( + const char *template = TEMPLATE(

[subject]

@@ -110,15 +110,12 @@ int htmlMessageOpen(FILE *file, const struct Envelope *envelope) { [from] - ); - const char *template2 = TEMPLATE( -
); char *mailto = htmlMailto(envelope); char utc[sizeof("0000-00-00T00:00:00Z")]; @@ -137,10 +134,10 @@ int htmlMessageOpen(FILE *file, const struct Envelope *envelope) { {0}, }; int error = 0 - || templateRender(file, template1, vars, escapeXML) + || templateRender(file, template, vars, escapeXML) || htmlAddressList(file, "to", envelope->to) || htmlAddressList(file, "cc", envelope->cc) - || templateRender(file, template2, vars, escapeXML); + || templateRender(file, TEMPLATE(), NULL, NULL); free(mailto); free(fragment); free(mbox); -- cgit 1.4.1