comparison h/addrsbr.h @ 0:bce86c4163a3

Initial revision
author kono
date Mon, 18 Apr 2005 23:46:02 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:bce86c4163a3
1 /* addrsbr.h - definitions for the address parsing system */
2
3 #define AD_HOST 1 /* getm(): lookup official hostname */
4 #define AD_NHST 0 /* getm(): do not lookup official name */
5 #define AD_NAME AD_NHST /* AD_HOST is TOO slow */
6
7
8 struct mailname {
9 struct mailname *m_next;
10
11 char *m_text,
12 *m_pers,
13 *m_mbox,
14 *m_host,
15 *m_path;
16
17 int m_type;
18 #define UUCPHOST (-1)
19 #define LOCALHOST 0
20 #define NETHOST 1
21 #define BADHOST 2
22
23 char m_nohost;
24
25 char m_bcc;
26
27 int m_ingrp;
28 char *m_gname;
29
30 char *m_note;
31
32 #ifdef MHMTS
33 char *m_aka;
34 #endif /* MHMTS */
35 };
36
37
38 void mnfree ();
39 int ismymbox ();
40 char *getname (), *adrsprintf (), *auxformat ();
41 struct mailname *getm ();
42
43 #define adrformat(m) auxformat ((m), 1)
44
45 char *LocalName (), *SystemName (), *UucpChan ();
46 char *OfficialName ();