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"
|
||||
dbcmdopts="-e"
|
||||
|
||||
if [[ -n $tab ]]; then
|
||||
dbcmdopts="-s -N $dbcmdopts"
|
||||
fi
|
||||
|
||||
# build query
|
||||
dbquery="SELECT vm_mboxes.mbox, vm_domains.domain"
|
||||
if [ -n "$includepassword" ]; then
|
||||
|
|
|
@ -75,7 +75,7 @@ function vmail::yesno() {
|
|||
|
||||
function vmail:getoptions () {
|
||||
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
|
||||
h ) # display help and exit
|
||||
help
|
||||
|
@ -158,6 +158,9 @@ function vmail:getoptions () {
|
|||
l ) # limit
|
||||
limit=${OPTARG}
|
||||
;;
|
||||
m ) # mbox
|
||||
mbox=${OPTARG}
|
||||
;;
|
||||
p ) # password
|
||||
password=${OPTARG}
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue
Block a user