aboutsummaryrefslogtreecommitdiffstats
path: root/smtpd/parser.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@poolp.org>2013-06-17 17:29:03 +0200
committerGilles Chehade <gilles@poolp.org>2013-06-17 17:29:03 +0200
commitb5d67614dbc8bcbd8f9225ab618297bff550164f (patch)
tree1fa78f6585c791f23cb66a16c843d5bd24f03024 /smtpd/parser.c
parentforgot a bit when enabled the quadratic delay (diff)
downloadOpenSMTPD-b5d67614dbc8bcbd8f9225ab618297bff550164f.tar.xz
OpenSMTPD-b5d67614dbc8bcbd8f9225ab618297bff550164f.zip
allow smtpd to enable a route it has disabled
Diffstat (limited to 'smtpd/parser.c')
-rw-r--r--smtpd/parser.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/smtpd/parser.c b/smtpd/parser.c
index b19906fe..89865636 100644
--- a/smtpd/parser.c
+++ b/smtpd/parser.c
@@ -51,6 +51,7 @@ static const struct token t_main[];
static const struct token t_pause[];
static const struct token t_remove[];
static const struct token t_resume[];
+static const struct token t_resume_route[];
static const struct token t_schedule[];
static const struct token t_show[];
static const struct token t_show_envelope[];
@@ -120,6 +121,12 @@ static const struct token t_resume[] = {
{KEYWORD, "mda", RESUME_MDA, NULL},
{KEYWORD, "mta", RESUME_MTA, NULL},
{KEYWORD, "smtp", RESUME_SMTP, NULL},
+ {KEYWORD, "route", RESUME_ROUTE, t_resume_route},
+ {ENDTOKEN, "", NONE, NULL}
+};
+
+static const struct token t_resume_route[] = {
+ {VARIABLE, "id", RESUME_ROUTE, NULL},
{ENDTOKEN, "", NONE, NULL}
};