summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-05-15 21:21:35 +0000
committerthomascube <thomas@roundcube.net>2008-05-15 21:21:35 +0000
commitb026c3be85cb5617176e1408e2281bea4182e060 (patch)
tree45dead516741cf9a78b1c069fe5eef66c124d5da /program/include
parent405aba83230471ead28adccaa888af73750771f1 (diff)
Make IMAP auth type configurable (#1483825)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_imap.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php
index 8166fd69c..1bf59b8dd 100644
--- a/program/include/rcube_imap.php
+++ b/program/include/rcube_imap.php
@@ -118,8 +118,10 @@ class rcube_imap
$ICL_PORT = $port;
$IMAP_USE_INTERNAL_DATE = false;
+
+ $auth_type = rcmail::get_instance()->config->get('imap_auth_type', 'check');
- $this->conn = iil_Connect($host, $user, $pass, array('imap' => 'check'));
+ $this->conn = iil_Connect($host, $user, $pass, array('imap' => $auth_type));
$this->host = $host;
$this->user = $user;
$this->pass = $pass;
@@ -2367,7 +2369,7 @@ class rcube_imap
// no encoding information, use fallback
return rcube_charset_convert($input,
- !empty($fallback) ? $fallback : $GLOBALS['CONFIG']['default_charset']);
+ !empty($fallback) ? $fallback : rcmail::get_instance()->config->get('default_charset', 'ISO-8859-1'));
}