about summary refs log tree commit diff
path: root/html.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--html.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/html.c b/html.c
index bc6035e..8aa872d 100644
--- a/html.c
+++ b/html.c
@@ -23,10 +23,6 @@
 
 #include "archive.h"
 
-static const char *addrName(struct Address addr) {
-	return (addr.name ? addr.name : addr.mailbox);
-}
-
 static int
 htmlAddressList(FILE *file, const char *class, struct AddressList list) {
 	if (!list.len) return 0;
@@ -41,7 +37,7 @@ htmlAddressList(FILE *file, const char *class, struct AddressList list) {
 	for (size_t i = 0; i < list.len; ++i) {
 		struct Variable vars[] = {
 			{ "class", class },
-			{ "name", addrName(list.addrs[i]) },
+			{ "name", addressName(list.addrs[i]) },
 			{0},
 		};
 		error = templateRender(
@@ -79,7 +75,7 @@ int htmlEnvelope(FILE *file, const struct Envelope *envelope) {
 		{ "fragment", fragment },
 		{ "subject", envelope->subject },
 		{ "mailto", mailto },
-		{ "from", addrName(envelope->from) },
+		{ "from", addressName(envelope->from) },
 		{ "date", date },
 		{ "utc", utc },
 		{0},