Changeset 3c5489b in github


Ignore:
Timestamp:
May 21, 2012 3:25:51 AM (12 months ago)
Author:
Aleksander Machniak <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo
Children:
19cc5b9
Parents:
e95f13e
Message:

Add option imap_force_ns to make buggy servers support optional

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • config/main.inc.php.dist

    ra605b25 r3c5489b  
    106106// Enable this option to force LSUB command usage instead. 
    107107$rcmail_config['imap_force_lsub'] = false; 
     108 
     109// Some server configurations (e.g. Courier) doesn't list folders in all namespaces 
     110// Enable this option to force listing of folders in all namespaces 
     111$rcmail_config['imap_force_ns'] = false; 
    108112 
    109113// IMAP connection timeout, in seconds. Default: 0 (no limit) 
  • plugins/subscriptions_option/package.xml

    r48e9c14 r3c5489b  
    2424            <active>yes</active> 
    2525        </developer> 
    26         <date>2012-03-05</date> 
     26        <date>2012-05-21</date> 
    2727        <version> 
    28                 <release>1.2</release> 
     28                <release>1.3</release> 
    2929                <api>1.1</api> 
    3030        </version> 
  • plugins/subscriptions_option/subscriptions_option.php

    r48e9c14 r3c5489b  
    7575    function mailboxes_list($args) 
    7676    { 
    77         $rcmail  = rcmail::get_instance(); 
     77        $rcmail = rcmail::get_instance(); 
    7878        if (!$rcmail->config->get('use_subscriptions', true)) { 
    79             $storage = $rcmail->get_storage(); 
    80             if ($storage->check_connection()) { 
    81                 $args['folders'] = $storage->conn->listMailboxes($args['root'], $args['name']); 
    82             } 
     79            $args['folders'] = $rcmail->get_storage()->list_folders_direct(); 
    8380        } 
    8481        return $args; 
  • program/include/rcube_imap.php

    r0af82c8 r3c5489b  
    25402540        } 
    25412541 
    2542         // #1486796: some server configurations doesn't 
    2543         // return folders in all namespaces, we'll try to detect that situation 
    2544         // and ask for these namespaces separately 
    2545         // @TODO: make this optional 
    2546         if ($root == '' && $name == '*') { 
     2542        // #1486796: some server configurations doesn't return folders in all namespaces 
     2543        if ($root == '' && $name == '*' && $config->get('imap_force_ns')) { 
    25472544            $this->list_folders_update($a_folders, ($list_extended ? 'ext-' : '') . 'subscribed'); 
    25482545        } 
     
    26742671        } 
    26752672 
    2676         // #1486796: some server configurations doesn't 
    2677         // return folders in all namespaces, we'll try to detect that situation 
    2678         // and ask for these namespaces separately 
    2679         // @TODO: make this optional 
    2680         if ($root == '' && $name == '*') { 
     2673        // #1486796: some server configurations doesn't return folders in all namespaces 
     2674        if ($root == '' && $name == '*' && $config->get('imap_force_ns')) { 
    26812675            $this->list_folders_update($result); 
    26822676        } 
Note: See TracChangeset for help on using the changeset viewer.