Factor trim format function out
[mmh] / h / addrsbr.h
index 5e19b78..639333e 100644 (file)
@@ -6,11 +6,13 @@
 #define AD_NHST 0          /* getm(): do not lookup official name */
 #define AD_NAME AD_NHST    /* AD_HOST is TOO slow                 */
 
-#define UUCPHOST     (-1)
 #define LOCALHOST    0
 #define NETHOST      1
 #define BADHOST      2
 
+#include <stddef.h>
+#include <unistd.h>
+
 struct mailname {
        struct mailname *m_next;
        char *m_text;
@@ -35,3 +37,4 @@ int ismymbox(struct mailname *);
 char *getname(char *);
 char *adrformat(struct mailname *);
 struct mailname *getm(char *, char *, int, int, char *);
+ssize_t getmboxes(char *, struct mailname **);