From f40c398844c05eddedf948e74de6c6460ff584c5 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 3 Sep 2007 14:03:54 +0000 Subject: Handle mailq's -q option (Phil Sutter). --- esmtp-wrapper | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/esmtp-wrapper b/esmtp-wrapper index c090465..1a9aa1a 100755 --- a/esmtp-wrapper +++ b/esmtp-wrapper @@ -79,7 +79,7 @@ deliver_queue() { # () ME=`basename "$0"` case "$ME" in - sendmail) + sendmail|esmtp) queue_mail "$@" || return 1 deliver_queue & ;; @@ -87,7 +87,11 @@ case "$ME" in deliver_queue ;; mailq) - show_queue + if [ x"$1" = x"-q" ]; then + deliver_queue + else + show_queue + fi ;; *) exit 1 -- cgit v1.2.3-54-g00ecf