diff --git a/webui/controller/import/test.php b/webui/controller/import/test.php index 712ecf93..047201ed 100644 --- a/webui/controller/import/test.php +++ b/webui/controller/import/test.php @@ -48,11 +48,15 @@ class ControllerImportTest extends Controller { } - else if($this->request->post['type'] == 'imap') { + else if($this->request->post['type'] == 'imap' || $this->request->post['type'] == 'imap-ssl') { + $ssl = false; + if($this->request->post['type'] == 'imap-ssl') { + $ssl = 'SSL'; + } try { - $conn = new Zend_Mail_Protocol_Imap($this->request->post['server'], '143', false); + $conn = new Zend_Mail_Protocol_Imap($this->request->post['server'], null, $ssl); $login = $conn->login($this->request->post['username'], $this->request->post['password']); @@ -61,7 +65,7 @@ class ControllerImportTest extends Controller { } else { print "" . $this->request->post['username'] . ": " . $lang->data['text_login_failed'] . " "; } - + } catch (Zend_Mail_Protocol_Exception $e) { print "" . $this->request->post['server'] . ": " . $lang->data['text_connection_failed'] . " "; } @@ -76,5 +80,3 @@ class ControllerImportTest extends Controller { } - -?> diff --git a/webui/view/theme/default/templates/import/list.tpl b/webui/view/theme/default/templates/import/list.tpl index d15d5c07..d700cfe6 100644 --- a/webui/view/theme/default/templates/import/list.tpl +++ b/webui/view/theme/default/templates/import/list.tpl @@ -31,6 +31,7 @@ @@ -43,7 +44,7 @@