diff options
author | José Fonseca <jrfonseca@users.sourceforge.net> | 2007-09-03 14:03:54 +0000 |
---|---|---|
committer | José Fonseca <jrfonseca@users.sourceforge.net> | 2007-09-03 14:03:54 +0000 |
commit | f40c398844c05eddedf948e74de6c6460ff584c5 (patch) | |
tree | 74e720509f97e6bf84381987a4f85df33ff527b4 | |
parent | 3abf43bbcefda64033356f27f3253215f99a087d (diff) |
Handle mailq's -q option (Phil Sutter).
-rwxr-xr-x | esmtp-wrapper | 8 |
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 |