|
|
@ -62,7 +62,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST")
|
|
|
|
$recipients = [];
|
|
|
|
$recipients = [];
|
|
|
|
|
|
|
|
|
|
|
|
$q = "SELECT username from $table_mailbox WHERE ".db_in_clause("domain", $wanted_domains);
|
|
|
|
$q = "SELECT username from $table_mailbox WHERE ".db_in_clause("domain", $wanted_domains);
|
|
|
|
if(!isset($_POST['mailboxes_only']) || $_POST['mailboxes_only'] != "on") {
|
|
|
|
if (intval(safepost('mailboxes_only')) == 0) {
|
|
|
|
$q .= " UNION SELECT goto FROM $table_alias WHERE ".db_in_clause("domain", $wanted_domains)."AND goto NOT IN ($q)";
|
|
|
|
$q .= " UNION SELECT goto FROM $table_alias WHERE ".db_in_clause("domain", $wanted_domains)."AND goto NOT IN ($q)";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$result = db_query($q);
|
|
|
|
$result = db_query($q);
|
|
|
|