summaryrefslogtreecommitdiff
path: root/esmtp-wrapper
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@users.sourceforge.net>2007-09-03 14:03:54 +0000
committerJosé Fonseca <jrfonseca@users.sourceforge.net>2007-09-03 14:03:54 +0000
commitf40c398844c05eddedf948e74de6c6460ff584c5 (patch)
tree74e720509f97e6bf84381987a4f85df33ff527b4 /esmtp-wrapper
parent3abf43bbcefda64033356f27f3253215f99a087d (diff)
Handle mailq's -q option (Phil Sutter).
Diffstat (limited to 'esmtp-wrapper')
-rwxr-xr-xesmtp-wrapper8
1 files 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