summaryrefslogtreecommitdiff
path: root/esmtp-wrapper
diff options
context:
space:
mode:
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