diff h/addrsbr.h @ 0:bce86c4163a3

Initial revision
author kono
date Mon, 18 Apr 2005 23:46:02 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/h/addrsbr.h	Mon Apr 18 23:46:02 2005 +0900
@@ -0,0 +1,46 @@
+/* addrsbr.h - definitions for the address parsing system */
+
+#define	AD_HOST	1		/* getm(): lookup official hostname */
+#define	AD_NHST	0		/* getm(): do not lookup official name */
+#define	AD_NAME	AD_NHST		/* AD_HOST is TOO slow */
+
+
+struct mailname {
+    struct mailname *m_next;
+
+    char   *m_text,
+           *m_pers,
+           *m_mbox,
+           *m_host,
+	   *m_path;
+
+    int     m_type;
+#define	UUCPHOST	(-1)
+#define	LOCALHOST	0
+#define	NETHOST		1
+#define	BADHOST		2
+
+    char    m_nohost;
+
+    char    m_bcc;
+
+    int     m_ingrp;
+    char   *m_gname;
+
+    char   *m_note;
+
+#ifdef	MHMTS
+    char   *m_aka;
+#endif /* MHMTS */
+};
+
+
+void	mnfree ();
+int     ismymbox ();
+char   *getname (), *adrsprintf (), *auxformat ();
+struct mailname *getm ();
+
+#define	adrformat(m)	auxformat ((m), 1)
+
+char   *LocalName (), *SystemName (), *UucpChan ();
+char   *OfficialName ();