]> git.sthu.org Git - smailq.git/blob - mailq
Use update-alternative for Debian
[smailq.git] / mailq
1 #!/bin/sh
2
3 # Copyright (c) 2013 Stefan Huber <shuber@sthu.org>
4
5 set -e
6
7 PROGNAME=$(basename $0)
8
9 usage() {
10 cat <<EOF
11 List the mails in the mail queue by calling 'smailq --list'.
12
13 USAGE:
14 $0 [OPTION]
15
16 OPTIONS:
17 -h, --help Print this text
18 EOF
19 }
20
21
22 TEMP=`getopt -o "h" --long "help" -n "$PROGNAME" -- "$@"`
23 eval set - "$TEMP"
24
25 while true; do
26 case "$1" in
27 -h | --help )
28 usage
29 exit $STATE_OK ;;
30 -- )
31 shift
32 break ;;
33 * )
34 break ;;
35 esac
36 done
37
38 smailq --list