diff options
author | Sunil Nimmagadda <sunil@cvs.openbsd.org> | 2015-11-05 09:14:32 +0000 |
---|---|---|
committer | Sunil Nimmagadda <sunil@cvs.openbsd.org> | 2015-11-05 09:14:32 +0000 |
commit | 3af9a6bc61031a67115630a14b00b7e3ba5f1152 (patch) | |
tree | 6d0d1e86a92d2eca0aae778e7d4f3496091c4511 /usr.sbin/smtpd/control.c | |
parent | f765431d28157777420c73946a9a414a7a2341cd (diff) |
Implement smtpctl uncorrupt <msgid>
"uncorrupt" moves envelopes from corrupt bucket back to the queue
for further discovery by the daemon.
After correcting the corrupt envelopes, admin could now...
# smtpctl uncorrupt msgid
# smtpctl discover msgid
to schedule the messages.
Ok gilles@
Diffstat (limited to 'usr.sbin/smtpd/control.c')
-rw-r--r-- | usr.sbin/smtpd/control.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/control.c b/usr.sbin/smtpd/control.c index 2a0dec52f8c..3b8a41962cd 100644 --- a/usr.sbin/smtpd/control.c +++ b/usr.sbin/smtpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.107 2015/10/29 10:25:36 sunil Exp $ */ +/* $OpenBSD: control.c,v 1.108 2015/11/05 09:14:31 sunil Exp $ */ /* * Copyright (c) 2012 Gilles Chehade <gilles@poolp.org> @@ -118,6 +118,7 @@ control_imsg(struct mproc *p, struct imsg *imsg) case IMSG_CTL_LIST_ENVELOPES: case IMSG_CTL_DISCOVER_EVPID: case IMSG_CTL_DISCOVER_MSGID: + case IMSG_CTL_UNCORRUPT_MSGID: c = tree_get(&ctl_conns, imsg->hdr.peerid); if (c == NULL) return; @@ -811,6 +812,7 @@ control_dispatch_ext(struct mproc *p, struct imsg *imsg) return; case IMSG_CTL_DISCOVER_MSGID: + case IMSG_CTL_UNCORRUPT_MSGID: if (c->euid) goto badcred; |