summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-26 19:01:02 -0400
committerJune McEnroe <june@causal.agency>2020-04-26 19:01:02 -0400
commiteb4ec99d2e88d1f53542bf8790eced6639c26122 (patch)
treecf542d4aa00ea673a7fb9765d87cb164f6fa3dad
parentUse %R for RFC numbers in STANDARDS section (diff)
downloadbubger-eb4ec99d2e88d1f53542bf8790eced6639c26122.tar.gz
bubger-eb4ec99d2e88d1f53542bf8790eced6639c26122.zip
Include Cc address in reply mailtos
-rw-r--r--html.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/html.c b/html.c
index 5acbdf2..a8c344e 100644
--- a/html.c
+++ b/html.c
@@ -72,12 +72,14 @@ htmlAddressList(FILE *file, const char *class, struct AddressList list) {
 static char *htmlReply(const struct Envelope *envelope) {
 	const char *template = {
 		"mailto:[mailbox]@[host]"
-		"?subject=[re][subject]"
+		"?cc=[cc]"
+		"&subject=[re][subject]"
 		"&In-Reply-To=[<][messageID][>]"
 	};
 	struct Variable vars[] = {
 		{ "mailbox", envelope->replyTo.mailbox },
 		{ "host", envelope->replyTo.host },
+		{ "cc", baseAddress },
 		{ "re", (strncmp(envelope->subject, "Re: ", 4) ? "Re: " : "") },
 		{ "subject", envelope->subject },
 		{ "messageID", envelope->messageID },