diff --git a/bin/vmail-mboxes-get.sh b/bin/vmail-mboxes-get.sh index 9fc43ba..6d89b55 100755 --- a/bin/vmail-mboxes-get.sh +++ b/bin/vmail-mboxes-get.sh @@ -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 diff --git a/bin/vmail.sh b/bin/vmail.sh index ce3e992..b2b3a7a 100755 --- a/bin/vmail.sh +++ b/bin/vmail.sh @@ -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} ;;