From e774fb066c7e5e55bc5173ebf5a50e0a9b5e1673 Mon Sep 17 00:00:00 2001 From: Gilles Chehade Date: Sat, 6 Dec 2008 02:44:09 +0000 Subject: - 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@ --- usr.sbin/smtpd/parser.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.sbin/smtpd/parser.h') diff --git a/usr.sbin/smtpd/parser.h b/usr.sbin/smtpd/parser.h index ff3e45b4c1d..78846c992bc 100644 --- a/usr.sbin/smtpd/parser.h +++ b/usr.sbin/smtpd/parser.h @@ -1,4 +1,4 @@ -/* $OpenBSD: parser.h,v 1.1 2008/12/05 03:28:37 gilles Exp $ */ +/* $OpenBSD: parser.h,v 1.2 2008/12/06 02:44:08 gilles Exp $ */ /* * Copyright (c) 2006 Pierre-Yves Ritschard @@ -20,7 +20,9 @@ enum actions { NONE, SHUTDOWN, RELOAD, - MONITOR + MONITOR, + SHOWQUEUE, + SHOWRUNQUEUE }; struct parse_result { -- cgit v1.2.3