summary refs log tree commit diff
path: root/archive.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-10 10:57:10 -0400
committerJune McEnroe <june@causal.agency>2020-04-10 10:57:10 -0400
commit6f1fc87b39335b4f60d2368413c6da7e732a0d97 (patch)
treeb9c836c20c8901f83e3353cae267114c019fa7a4 /archive.h
parentRearrange HTML templating code (diff)
downloadbubger-6f1fc87b39335b4f60d2368413c6da7e732a0d97.tar.gz
bubger-6f1fc87b39335b4f60d2368413c6da7e732a0d97.zip
Rearrange Atom templating code
Diffstat (limited to '')
-rw-r--r--archive.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/archive.h b/archive.h
index 540b898..cca5775 100644
--- a/archive.h
+++ b/archive.h
@@ -26,6 +26,10 @@ struct Address {
 	const char *host;
 };
 
+static inline const char *addressName(struct Address addr) {
+	return (addr.name ? addr.name : addr.mailbox);
+}
+
 struct AddressList {
 	size_t len;
 	struct Address *addrs;