summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/parser.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2009-01-04 22:35:10 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2009-01-04 22:35:10 +0000
commit92102d1d1b05d500457859fe5b0485fe1cc7868d (patch)
tree4f0652b091967145b5dea3f5d59b57a3992511df /usr.sbin/smtpd/parser.c
parent79dc2898a960528ca8c456fd9ef71358ff4debfe (diff)
- smtp can now pause/resume the accepting of incoming messages
- smtpctl recognizes "pause incoming" and "resume incoming" - setup imsg communication between control process and smtp process
Diffstat (limited to 'usr.sbin/smtpd/parser.c')
-rw-r--r--usr.sbin/smtpd/parser.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/parser.c b/usr.sbin/smtpd/parser.c
index 291d2bc5272..ae1a886b307 100644
--- a/usr.sbin/smtpd/parser.c
+++ b/usr.sbin/smtpd/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.4 2009/01/04 19:37:41 gilles Exp $ */
+/* $OpenBSD: parser.c,v 1.5 2009/01/04 22:35:09 gilles Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -78,12 +78,14 @@ static const struct token t_show[] = {
static const struct token t_pause[] = {
{KEYWORD, "local", PAUSE_MDA, NULL},
{KEYWORD, "outgoing", PAUSE_MTA, NULL},
+ {KEYWORD, "incoming", PAUSE_SMTP, NULL},
{ENDTOKEN, "", NONE, NULL}
};
static const struct token t_resume[] = {
{KEYWORD, "local", RESUME_MDA, NULL},
{KEYWORD, "outgoing", RESUME_MTA, NULL},
+ {KEYWORD, "incoming", RESUME_SMTP, NULL},
{ENDTOKEN, "", NONE, NULL}
};