diff --git a/webui/model/user/import.php b/webui/model/user/import.php index eb01917b..86ac20a8 100644 --- a/webui/model/user/import.php +++ b/webui/model/user/import.php @@ -50,7 +50,7 @@ class ModelUserImport extends Model { for($i = 0; $i < $result[$__mail_attr]['count']; $i++) { LOGGER("found email entry: " . $result['dn'] . " => $__mail_attr:" . $result[$__mail_attr][$i]); - if(preg_match("/^smtp\:/i", $result[$__mail_attr][$i])) { + if(preg_match("/^smtp\:/i", $result[$__mail_attr][$i]) || strchr($result[$__mail_attr][$i], '@') ) { $emails .= strtolower(preg_replace("/^smtp\:/i", "", $result[$__mail_attr][$i])) . "\n"; } }