No need to define the month and day names a second time
[mmh] / h / addrsbr.h
1 /*
2 ** addrsbr.h -- definitions for the address parsing system
3 */
4
5 #define AD_HOST 1          /* getm(): lookup official hostname    */
6 #define AD_NHST 0          /* getm(): do not lookup official name */
7 #define AD_NAME AD_NHST    /* AD_HOST is TOO slow                 */
8
9 #define LOCALHOST    0
10 #define NETHOST      1
11 #define BADHOST      2
12
13 #include <stddef.h>
14 #include <unistd.h>
15
16 struct mailname {
17         struct mailname *m_next;
18         char *m_text;
19         char *m_pers;
20         char *m_mbox;
21         char *m_host;
22         char *m_path;
23         int m_type;
24         char m_nohost;
25         char m_bcc;
26         int m_ingrp;
27         char *m_gname;
28         char *m_note;
29 };
30
31
32 /*
33 **  prototypes
34 */
35 void mnfree(struct mailname *);
36 int ismymbox(struct mailname *);
37 char *getname(char *);
38 char *adrformat(struct mailname *);
39 struct mailname *getm(char *, char *, int, int, char *);
40 ssize_t getmboxes(char *, struct mailname **);