Changeset 3c5489b in github for program/include/rcube_imap.php


Ignore:
Timestamp:
May 21, 2012 3:25:51 AM (13 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.