From f75f65ce47d62f0efbe52b4520030c73727d4c7e Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 3 Nov 2010 08:29:27 +0000 Subject: - Added option imap_force_lsub for some buggy LIST-EXTENDED implementations (#1486225) --- program/include/rcube_imap.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'program') diff --git a/program/include/rcube_imap.php b/program/include/rcube_imap.php index 473e914b9..3d04937fc 100644 --- a/program/include/rcube_imap.php +++ b/program/include/rcube_imap.php @@ -2827,7 +2827,9 @@ class rcube_imap } else { // Server supports LIST-EXTENDED, we can use selection options - if ($this->get_capability('LIST-EXTENDED')) { + $config = rcmail::get_instance()->config; + // #1486225: Some dovecot versions returns wrong result using LIST-EXTENDED + if (!$config->get('imap_force_lsub') && $this->get_capability('LIST-EXTENDED')) { // This will also set mailbox options, LSUB doesn't do that $a_folders = $this->conn->listMailboxes($this->mod_mailbox($root), $filter, NULL, array('SUBSCRIBED')); -- cgit v1.2.3