]> diplodocus.org Git - nmh/blob - h/addrsbr.h
Removed debugging statement and added comments to the duplicate check
[nmh] / h / addrsbr.h
1
2 /*
3 * addrsbr.h -- definitions for the address parsing system
4 */
5
6 #define AD_HOST 1 /* getm(): lookup official hostname */
7 #define AD_NHST 0 /* getm(): do not lookup official name */
8 #define AD_NAME AD_NHST /* AD_HOST is TOO slow */
9
10 #define UUCPHOST (-1)
11 #define LOCALHOST 0
12 #define NETHOST 1
13 #define BADHOST 2
14
15 struct mailname {
16 struct mailname *m_next;
17 char *m_text;
18 char *m_pers;
19 char *m_mbox;
20 char *m_host;
21 char *m_path;
22 int m_type;
23 char m_nohost;
24 char m_bcc;
25 int m_ingrp;
26 char *m_gname;
27 char *m_note;
28 };
29
30 #define adrformat(m) auxformat ((m), 1)
31
32 /*
33 * prototypes
34 */
35 void mnfree(struct mailname *);
36 int ismymbox(struct mailname *);
37 char *getname(char *);
38 char *getlocaladdr(void);
39 char *auxformat(struct mailname *, int);
40 struct mailname *getm(char *, char *, int, int, char *);