fixed -e email query

This commit is contained in:
Matthew Saunders Brown 2021-10-15 16:46:08 -07:00
parent 0a76d135b2
commit 6357f476c0

View File

@ -48,7 +48,7 @@ if [[ -n $alias ]]; then
exit 1
fi
elif [[ -n $email ]]; then
dbquery="$dbquery AND vm_aliases.alias='$mbox' AND vm_domains.domain='$domain'"
dbquery="$dbquery AND vm_mboxes.mbox='$mbox' AND vm_domains.domain='$domain'"
elif [[ -n $domain ]]; then
dbquery="$dbquery AND vm_domains.domain='$domain'"
else