From 211a22753cd8e48dd7cf5a4b33c3ee2e7d04d49a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come.bernigaud@opensides.be>
Date: Tue, 19 Apr 2016 06:24:03 +0200
Subject: [PATCH] Fixes #4737 Removed config->data['SERVERS']['IMAP']

---
 include/class_config.inc | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/include/class_config.inc b/include/class_config.inc
index 25b01398e..091393540 100644
--- a/include/class_config.inc
+++ b/include/class_config.inc
@@ -470,22 +470,7 @@ class config  {
       return;
     }
 
-    /* Fill imap servers */
     $ldap = $this->get_ldap_link();
-    $ldap->cd ($this->current['BASE']);
-
-    /* Search mailMethod configuration in main section too */
-    $this->current['MAILMETHOD']    = $this->get_cfg_value("mailMethod", "");
-    $mailMethodClass                = 'mailMethod'.$this->current['MAILMETHOD'];
-    if (class_available($mailMethodClass)) {
-      $this->data['SERVERS']['IMAP']  = $mailMethodClass::get_server_list($this);
-    } elseif (class_available('mailMethod')) {
-      msg_dialog::display(
-        _('Error'),
-        sprintf(_('The selected mail method (class %s) is not available'), $mailMethodClass),
-        ERROR_DIALOG
-      );
-    }
 
     /* Get NFS server lists */
     $tmp  = array("default");
-- 
GitLab