mbox getopt, fixed tab opt
This commit is contained in:
parent
8cc3a8a109
commit
5531423ba0
|
@ -39,6 +39,10 @@ vmail:getoptions "$@"
|
||||||
dbcmd="mysql --defaults-extra-file=$MYSQL_CONNECTION_INFO_FILE"
|
dbcmd="mysql --defaults-extra-file=$MYSQL_CONNECTION_INFO_FILE"
|
||||||
dbcmdopts="-e"
|
dbcmdopts="-e"
|
||||||
|
|
||||||
|
if [[ -n $tab ]]; then
|
||||||
|
dbcmdopts="-s -N $dbcmdopts"
|
||||||
|
fi
|
||||||
|
|
||||||
# build query
|
# build query
|
||||||
dbquery="SELECT vm_mboxes.mbox, vm_domains.domain"
|
dbquery="SELECT vm_mboxes.mbox, vm_domains.domain"
|
||||||
if [ -n "$includepassword" ]; then
|
if [ -n "$includepassword" ]; then
|
||||||
|
|
|
@ -75,7 +75,7 @@ function vmail::yesno() {
|
||||||
|
|
||||||
function vmail:getoptions () {
|
function vmail:getoptions () {
|
||||||
local OPTIND
|
local OPTIND
|
||||||
while getopts "ha:b:d:e:f:gcp:q:s:tkf:gl:vx" opt ; do
|
while getopts "ha:b:d:e:f:gcp:q:s:tkf:gl:m:vx" opt ; do
|
||||||
case "${opt}" in
|
case "${opt}" in
|
||||||
h ) # display help and exit
|
h ) # display help and exit
|
||||||
help
|
help
|
||||||
|
@ -158,6 +158,9 @@ function vmail:getoptions () {
|
||||||
l ) # limit
|
l ) # limit
|
||||||
limit=${OPTARG}
|
limit=${OPTARG}
|
||||||
;;
|
;;
|
||||||
|
m ) # mbox
|
||||||
|
mbox=${OPTARG}
|
||||||
|
;;
|
||||||
p ) # password
|
p ) # password
|
||||||
password=${OPTARG}
|
password=${OPTARG}
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user