summary refs log tree commit diff
path: root/archive.h
diff options
context:
space:
mode:
Diffstat (limited to 'archive.h')
-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;
June McEnroe 2018-01-30Style tweak fbclockJune McEnroe 2018-01-30Remove Tarmak and Colemak keylayoutsJune McEnroe 2018-01-29Generalize hnelJune McEnroe 2018-01-29Remove Tarmak remappings from vimJune McEnroe 2018-01-29Switch back to QWERTY on LinuxJune McEnroe 2018-01-29Take fbclock font in env varJune McEnroe 2018-01-29Support fbclock fonts wider than 8June McEnroe 2018-01-29Take font path on fbclock argvJune McEnroe 2018-01-29Add fbclockJune McEnroe 2018-01-29Remove color from MakefileJune McEnroe 2018-01-29Set t_Co = 8June McEnroe 2018-01-29Add :Q command aliasJune McEnroe 2018-01-29Add setuid target for briJune McEnroe 2018-01-28Add init function to fb interfaceJune McEnroe 2018-01-28Add color.cJune McEnroe