summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/smtpd/smtpd.h')
-rw-r--r--usr.sbin/smtpd/smtpd.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/smtpd.h b/usr.sbin/smtpd/smtpd.h
index a7711d2f0e6..6a4b99acf74 100644
--- a/usr.sbin/smtpd/smtpd.h
+++ b/usr.sbin/smtpd/smtpd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpd.h,v 1.481 2015/10/28 07:25:30 gilles Exp $ */
+/* $OpenBSD: smtpd.h,v 1.482 2015/10/28 14:30:03 gilles Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -466,6 +466,15 @@ struct expand {
struct expandnode *parent;
};
+struct maddrnode {
+ TAILQ_ENTRY(maddrnode) entries;
+ struct mailaddr mailaddr;
+};
+
+struct maddrmap {
+ TAILQ_HEAD(xmaddr, maddrnode) queue;
+};
+
#define DSN_SUCCESS 0x01
#define DSN_FAILURE 0x02
#define DSN_DELAY 0x04
@@ -1184,6 +1193,13 @@ void mda_postprivdrop(void);
void mda_imsg(struct mproc *, struct imsg *);
+/* mailaddr.c */
+int mailaddr_line(struct maddrmap *, const char *);
+void maddrmap_init(struct maddrmap *);
+void maddrmap_insert(struct maddrmap *, struct maddrnode *);
+void maddrmap_free(struct maddrmap *);
+
+
/* mproc.c */
int mproc_fork(struct mproc *, const char*, char **);
void mproc_init(struct mproc *, int);