mbox getopt, fixed tab opt

This commit is contained in:
Matthew Saunders Brown 2021-10-15 16:04:29 -07:00
parent 8cc3a8a109
commit 5531423ba0
2 changed files with 8 additions and 1 deletions

View File

@ -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

View File

@ -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}
;; ;;