summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/parser.c
diff options
context:
space:
mode:
authorGilles Chehade <gilles@cvs.openbsd.org>2008-12-06 02:44:09 +0000
committerGilles Chehade <gilles@cvs.openbsd.org>2008-12-06 02:44:09 +0000
commite774fb066c7e5e55bc5173ebf5a50e0a9b5e1673 (patch)
tree20c2bf87aceb45be86bf6f492e000d7cd7a9065c /usr.sbin/smtpd/parser.c
parent9e528cc22428aabfba76fb6159044bfc8d0c9c09 (diff)
- teach smtpctl how to inspect queue and runqueue, it supports two commands
`showqueue' which displays the content of the queue (all envelopes) `showrunqueue` which displays envelopes scheduled for delivery. The utility will be improved and extended, but for now we need at least this basic support to help debug queue-related issues. Output format is spamdb-alike: type|envelope uid|sender|recipient|last delivery date|retry count ok jacek@
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 8d2b5d07508..366c442ff0c 100644
--- a/usr.sbin/smtpd/parser.c
+++ b/usr.sbin/smtpd/parser.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: parser.c,v 1.1 2008/12/05 03:28:37 gilles Exp $ */
+/* $OpenBSD: parser.c,v 1.2 2008/12/06 02:44:08 gilles Exp $ */
/*
* Copyright (c) 2006 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -64,6 +64,8 @@ static const struct token t_table_id[];
static const struct token t_host_id[];
static const struct token t_main[] = {
+ {KEYWORD, "showqueue", SHOWQUEUE, NULL},
+ {KEYWORD, "showrunqueue", SHOWRUNQUEUE, NULL},
{KEYWORD, "monitor", MONITOR, NULL},
{KEYWORD, "reload", RELOAD, NULL},
{KEYWORD, "stop", SHUTDOWN, NULL},