added missing AND

This commit is contained in:
Matthew Saunders Brown 2021-10-29 15:16:55 -07:00
parent 6357f476c0
commit 20524cfef5

View File

@ -42,7 +42,7 @@ if [[ -n $forward ]]; then
dbquery="$dbquery AND vm_forwards.forward_to='$mbox@$domain'"
elif [[ -n $domain ]]; then
# add specific domain
dbquery="$dbquery vm_domains.domain='$domain'"
dbquery="$dbquery AND vm_domains.domain='$domain'"
if [[ -n "$mbox" ]]; then
# search for forward for specific email address
dbquery="$dbquery AND vm_mboxes.mbox='$mbox'"