Changeset 5520


Ignore:
Timestamp:
02/16/12 07:36:41 (11 years ago)
Author:
gustavo
Message:

Ticket #2484 - Melhorias na estrutura de diretórios do ExpressoMail?

File:
1 edited

Legend:

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

    r5516 r5520  
    120120                $to_folder = mb_convert_encoding($params['folder_to'], 'UTF7-IMAP','UTF-8, ISO-8859-1, UTF7-IMAP'); 
    121121                $mbox = imap_open('{'.$this->imap_server.":".$this->imap_port.$this->imap_options.'}'.$new_folder[0], $this->username, $this->password); 
    122                 if(!imap_renamemailbox($mbox, '{'.$this->imap_server.":".$this->imap_port.$this->imap_options.'}'.$old_folder, '{'.$this->imap_server.":".$this->imap_port.$this->imap_options.'}'.$to_folder.$this->imap_delimiter.$new_folder[count($new_folder)-1])); 
    123                         return false; 
     122                $result = true; 
     123                if(!imap_renamemailbox($mbox, '{'.$this->imap_server.":".$this->imap_port.$this->imap_options.'}'.$old_folder, '{'.$this->imap_server.":".$this->imap_port.$this->imap_options.'}'.$to_folder.$this->imap_delimiter.$new_folder[count($new_folder)-1])){ 
     124                        $result = false; 
     125                } 
    124126                imap_close($mbox);  
    125                 return true; 
     127                return $result; 
    126128        }  
    127129         
Note: See TracChangeset for help on using the changeset viewer.