From a105ca383bfd94eade07f957a6c9df3dc60de3f8 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 12 Apr 2020 11:18:06 -0400 Subject: Do not use

for subject lines --- html.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index 14a4be9..ac1411d 100644 --- a/html.c +++ b/html.c @@ -51,7 +51,7 @@ htmlAddressList(FILE *file, const char *class, struct AddressList list) { return templateRender(file, TEMPLATE(), vars, escapeXML); } -int htmlEnvelope(FILE *file, const struct Envelope *envelope) { +int htmlMessageHead(FILE *file, const struct Envelope *envelope) { struct Variable urlVars[] = { { "mailbox", envelope->replyTo.mailbox }, { "host", envelope->replyTo.host }, @@ -85,7 +85,7 @@ int htmlEnvelope(FILE *file, const struct Envelope *envelope) { const char *Summary = TEMPLATE(
-

[subject]

+ [subject]
[from]
mbox @@ -101,3 +101,8 @@ int htmlEnvelope(FILE *file, const struct Envelope *envelope) { || htmlAddressList(file, "to", envelope->to) || htmlAddressList(file, "cc", envelope->cc); } + +int htmlMessageTail(FILE *file) { + int n = fprintf(file, "
\n"); + return (n < 0 ? n : 0); +} -- cgit 1.4.1