diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2011-12-13 21:44:48 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2011-12-13 21:44:48 +0000 |
commit | 72612720b30c3e8da4cf5e94514d61d6848be134 (patch) | |
tree | 5390507bf14156ec690014610767105471822b90 /usr.sbin/smtpd/lka_session.c | |
parent | 944d6d1f4be240c829d09af379f60cd2092b258e (diff) |
- introduce delivery backend API (delivery.c)
- move each delivery method to it's own delivery backend
- simplify smtpd.c accordingly
- rename A_EXT -> A_MDA since that's what we really do
ok eric@
Diffstat (limited to 'usr.sbin/smtpd/lka_session.c')
-rw-r--r-- | usr.sbin/smtpd/lka_session.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/smtpd/lka_session.c b/usr.sbin/smtpd/lka_session.c index e7da231fadd..4423cb4199c 100644 --- a/usr.sbin/smtpd/lka_session.c +++ b/usr.sbin/smtpd/lka_session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lka_session.c,v 1.14 2011/12/12 16:45:16 chl Exp $ */ +/* $OpenBSD: lka_session.c,v 1.15 2011/12/13 21:44:47 gilles Exp $ */ /* * Copyright (c) 2011 Gilles Chehade <gilles@openbsd.org> @@ -126,7 +126,7 @@ lka_session_envelope_expand(struct lka_session *lks, struct envelope *ep) break; case A_MAILDIR: case A_FILENAME: - case A_EXT: + case A_MDA: ep->agent.mda.method = ep->rule.r_action; (void)strlcpy(ep->agent.mda.to.buffer, ep->rule.r_value.buffer, @@ -381,7 +381,7 @@ lka_session_deliver(struct lka_session *lks, struct envelope *ep) switch (d_mda->method) { case A_MAILDIR: case A_FILENAME: - case A_EXT: { + case A_MDA: { char *buf = d_mda->to.buffer; size_t bufsz = sizeof(d_mda->to.buffer); if (! lka_session_expand_format(buf, bufsz, new_ep)) @@ -483,7 +483,7 @@ lka_session_resolve_node(struct envelope *ep, struct expandnode *xn) xn->u.buffer); ep->type = D_MDA; ep->agent.mda.to = xn->u; - ep->agent.mda.method = A_EXT; + ep->agent.mda.method = A_MDA; (void)strlcpy(ep->agent.mda.as_user, xn->as_user, sizeof (ep->agent.mda.as_user)); break; @@ -621,7 +621,7 @@ lka_session_rcpt_action(struct envelope *ep) case A_MBOX: case A_MAILDIR: case A_FILENAME: - case A_EXT: + case A_MDA: ep->type = D_MDA; break; default: |