diff options
Diffstat (limited to '')
-rw-r--r-- | archive.h | 4 |
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; |