Changeset 4263 in subversion


Ignore:
Timestamp:
Nov 24, 2010 10:44:05 AM (3 years ago)
Author:
thomasb
Message:

Fix php warnings; Courier doesn't like spaces appended to the EXPUNGE command

Location:
trunk/roundcubemail/program/include
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/include/iniset.php

    r4078 r4263  
    9292            '/Mail_(.+)/', 
    9393            '/Net_(.+)/', 
     94            '/Auth_(.+)/', 
    9495            '/^html_.+/', 
    9596            '/^utf8$/', 
     
    99100            'Mail/\\1', 
    100101            'Net/\\1', 
     102            'Auth/\\1', 
    101103            'html', 
    102104            'utf8.class', 
  • trunk/roundcubemail/program/include/rcube_imap.php

    r4255 r4263  
    32373237                foreach ($this->namespace['shared'] as $ns) { 
    32383238                    foreach ((array)$ns as $root) { 
    3239                         if (strpos($mbox_name, $root[0]) === 0) { 
     3239                        if ($root[0] && strpos($mbox_name, $root[0]) === 0) { 
    32403240                            return $mbox_name; 
    32413241                        } 
  • trunk/roundcubemail/program/include/rcube_imap_generic.php

    r4256 r4263  
    15751575        unset($this->data['STATUS:'.$mailbox]); 
    15761576 
    1577                 $result = $this->execute($messages ? 'UID EXPUNGE' : 'EXPUNGE', 
    1578                     array($messages), self::COMMAND_NORESPONSE); 
     1577                if ($messages) 
     1578                        $result = $this->execute('UID EXPUNGE', array($messages), self::COMMAND_NORESPONSE); 
     1579                else 
     1580                        $result = $this->execute('EXPUNGE', null, self::COMMAND_NORESPONSE); 
    15791581 
    15801582                if ($result == self::ERROR_OK) { 
Note: See TracChangeset for help on using the changeset viewer.