Ignore:
Timestamp:
Mar 3, 2012 8:20:14 AM (15 months ago)
Author:
alec
Message:
  • Apply fixes from trunk
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-0.7/program/include/rcube_imap_generic.php

    r5840 r5952  
    22802280                    } 
    22812281 
    2282                     // Add to options array 
    2283                     if (empty($this->data['LIST'][$mailbox])) 
    2284                         $this->data['LIST'][$mailbox] = $opts; 
    2285                     else if (!empty($opts)) 
    2286                         $this->data['LIST'][$mailbox] = array_unique(array_merge( 
    2287                             $this->data['LIST'][$mailbox], $opts)); 
     2282                    // store LSUB options only if not empty, this way 
     2283                    // we can detect a situation when LIST doesn't return specified folder 
     2284                    if (!empty($opts) || $cmd == 'LIST') { 
     2285                        // Add to options array 
     2286                        if (empty($this->data['LIST'][$mailbox])) 
     2287                            $this->data['LIST'][$mailbox] = $opts; 
     2288                        else if (!empty($opts)) 
     2289                            $this->data['LIST'][$mailbox] = array_unique(array_merge( 
     2290                                $this->data['LIST'][$mailbox], $opts)); 
     2291                    } 
    22882292                } 
    22892293                // * STATUS <mailbox> (<result>) 
Note: See TracChangeset for help on using the changeset viewer.