summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/smtpctl.c
diff options
context:
space:
mode:
authorEric Faurot <eric@cvs.openbsd.org>2012-01-12 22:59:56 +0000
committerEric Faurot <eric@cvs.openbsd.org>2012-01-12 22:59:56 +0000
commit5f10cdb7b1ae0464e5be5a94742899a679ae4232 (patch)
tree930ae865e9fd3e0c611bdc062123b80929c32d04 /usr.sbin/smtpd/smtpctl.c
parent8b4e86d9015234db4fd2114b1ecf5d73a6ea486e (diff)
The status field in the envelope is confusing. Its only purpose is to
notify the runner of what happened with an envelope that has been scheduled. It is not part of the state of the envelope, and it is not even dumped. So it should only be set by mta/mda, checked by runner to decide what to do with the envelope, and ignored everywhere else. ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/smtpctl.c')
-rw-r--r--usr.sbin/smtpd/smtpctl.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/usr.sbin/smtpd/smtpctl.c b/usr.sbin/smtpd/smtpctl.c
index 3c042dae0af..d2bd0155430 100644
--- a/usr.sbin/smtpd/smtpctl.c
+++ b/usr.sbin/smtpd/smtpctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: smtpctl.c,v 1.75 2012/01/12 18:06:18 eric Exp $ */
+/* $OpenBSD: smtpctl.c,v 1.76 2012/01/12 22:59:55 eric Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -507,13 +507,6 @@ show_envelope(struct envelope *e, int flags)
status[0] = '\0';
- getflag(&e->status, DS_TEMPFAILURE, "TEMPFAIL",
- status, sizeof(status));
-
- if (e->status)
- errx(1, "%016" PRIx64 ": unexpected status 0x%04x", e->id,
- e->status);
-
getflag(&e->flags, DF_BOUNCE, "BOUNCE",
status, sizeof(status));
getflag(&e->flags, DF_AUTHENTICATED, "AUTH",