diff options
author | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-02-24 12:07:48 +0000 |
---|---|---|
committer | Gilles Chehade <gilles@cvs.openbsd.org> | 2009-02-24 12:07:48 +0000 |
commit | 0c89a3940f4f8cf8eec242b429efdb56d5dd0d9c (patch) | |
tree | 29fda27767efe0824b69dd9cc07f9e8dd30655a0 /usr.sbin/smtpd/parser.h | |
parent | db0fede20cc5ec4218ba8e31beb66d6950ff87bb (diff) |
teach smtpctl's parser how to deal with parameters that are not necessarily
a token so that it is possible to do: smtpctl schedule <message id/uid>
introduce F_MESSAGE_FORCESCHEDULE which lets the runner schedule a message
even if the retry delay has not been expired.
F_MESSAGE_ENQUEUED is a valid flag for a message and should not cause an\
errx() in smtpctl show queue
Diffstat (limited to 'usr.sbin/smtpd/parser.h')
-rw-r--r-- | usr.sbin/smtpd/parser.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/smtpd/parser.h b/usr.sbin/smtpd/parser.h index 21d4e517b1b..bdee8ddfbbe 100644 --- a/usr.sbin/smtpd/parser.h +++ b/usr.sbin/smtpd/parser.h @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.h,v 1.6 2009/01/29 21:59:15 jacekm Exp $ */ +/* $OpenBSD: parser.h,v 1.7 2009/02/24 12:07:47 gilles Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -21,6 +21,7 @@ enum actions { SHUTDOWN, RELOAD, MONITOR, + SCHEDULE, SHOW_QUEUE, SHOW_RUNQUEUE, SHOW_STATS, @@ -35,6 +36,7 @@ enum actions { struct parse_result { struct ctl_id id; enum actions action; + const char *data; }; struct parse_result *parse(int, char *[]); |