From 16ce146d8881410618521ec676cb8e39252bb833 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Fri, 02 May 2014 13:39:02 -0400
Subject: [PATCH] Fix IMAP connection test in installer so it is aware of imap_auth_type (#1489746)
---
installer/test.php | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/installer/test.php b/installer/test.php
index 40b052b..5d5968e 100644
--- a/installer/test.php
+++ b/installer/test.php
@@ -425,6 +425,11 @@
$imap_user = idn_to_ascii($_POST['_user']);
$imap = new rcube_imap(null);
+ $imap->set_options(array(
+ 'auth_type' => $RCI->getprop('imap_auth_type'),
+ 'debug' => $RCI->getprop('imap_debug'),
+ ));
+
if ($imap->connect($imap_host, $imap_user, $_POST['_pass'], $imap_port, $imap_ssl)) {
$RCI->pass('IMAP connect', 'SORT capability: ' . ($imap->get_capability('SORT') ? 'yes' : 'no'));
$imap->close();
--
Gitblit v1.9.1