+ if ($this->_subset) {
+ require_once("emails.inc.php");
+ $ids = ids_from_mails($this->_subset_to);
+ $ids_list = implode(',', $ids);
+ if(count($ids) > 0) {
+ if ($this->_subset_rm) {
+ $where[] = "ni.user_id NOT IN ($ids_list)";
+ } else {
+ $where[] = "ni.user_id IN ($ids_list)";
+ }
+ } else {
+ // No valid email
+ $where[] = "0";
+ }
+ }