Changeset 5362


Ignore:
Timestamp:
01/11/12 15:29:27 (12 years ago)
Author:
douglas
Message:

Ticket #2439 - Ajuste na informacao e validacao de cotas de pastas Imap do usuario

Location:
trunk/expressoMail1_2/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r5359 r5362  
    40584058 
    40594059        function get_quota($params){ 
    4060                 // folder_id = user/{uid} for shared folders 
    4061                 if(substr($params['folder_id'],0,5) != 'INBOX' && preg_match('/user\\'.$this->imap_delimiter.'/i', $params['folder_id'])){ 
    4062                         $array_folder =  explode($this->imap_delimiter,$params['folder_id']); 
    4063                         $folder_id = "user".$this->imap_delimiter.$array_folder[1]; 
    4064                 } 
    4065                 // folder_id = INBOX for inbox folders 
    4066                 else 
    4067                         $folder_id = "INBOX"; 
     4060 
     4061                $folder_id = str_replace('/',$this->imap_delimiter,$params['folder_id']); 
    40684062 
    40694063                if(!$this->mbox || !is_resource($this->mbox)) 
  • trunk/expressoMail1_2/inc/class.imapfp.inc.php

    r3157 r5362  
    4848                        $this->must_update=false; 
    4949                        $this->tag=uniqid("HKC"); 
     50                        $this->imap_delimiter = $_SESSION['phpgw_info']['expressomail']['email_server']['imapDelimiter']; 
    5051                } 
    5152 
     
    8990                {                        
    9091                        // INBOX 
    91                         if($this->put_line($this->tag . " GETANNOTATION \"user/".$this->user ."\" \"/vendor/cmu/cyrus-imapd/size\" \"value.shared\"" )) 
     92                        if($this->put_line($this->tag . " GETANNOTATION \"user".$this->imap_delimiter.$this->user ."\" \"/vendor/cmu/cyrus-imapd/size\" \"value.shared\"" )) 
    9293                        { 
    9394                                $response_inbox=$this->get_server_responce(); 
     
    109110 
    110111                        // SUB_FOLDERS 
    111                         if($this->put_line($this->tag . " GETANNOTATION \"user/".$this->user ."/*\" \"/vendor/cmu/cyrus-imapd/size\" \"value.shared\"" )) 
     112                        if($this->put_line($this->tag . " GETANNOTATION \"user".$this->imap_delimiter.$this->user .$this->imap_delimiter."*\" \"/vendor/cmu/cyrus-imapd/size\" \"value.shared\"" )) 
    112113                        { 
    113114                                $response_sub=$this->get_server_responce(); 
Note: See TracChangeset for help on using the changeset viewer.