From 5d2ea6d9d60a64579eb801a8e46ce7b65d1fbd1f Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Fri, 10 Apr 2020 11:33:04 -0400 Subject: Link mbox files into message/ --- html.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'html.c') diff --git a/html.c b/html.c index 8aa872d..14a4be9 100644 --- a/html.c +++ b/html.c @@ -65,6 +65,7 @@ int htmlEnvelope(FILE *file, const struct Envelope *envelope) { "mailto:[mailbox]@[host]?subject=[re][subject]&In-Reply-To=[messageID]", urlVars ); + char *mbox = templateURL("../message/[messageID].mbox", urlVars); char date[256]; char utc[sizeof("0000-00-00T00:00:00Z")]; @@ -78,6 +79,7 @@ int htmlEnvelope(FILE *file, const struct Envelope *envelope) { { "from", addressName(envelope->from) }, { "date", date }, { "utc", utc }, + { "mbox", mbox }, {0}, }; const char *Summary = TEMPLATE( @@ -86,11 +88,13 @@ int htmlEnvelope(FILE *file, const struct Envelope *envelope) {

[subject]

[from]
+ mbox ); int error = templateRender(file, Summary, vars, escapeXML); free(fragment); free(mailto); + free(mbox); if (error) return error; return 0 -- cgit 1.4.1