Ignore:
Timestamp:
02/18/13 13:48:17 (11 years ago)
Author:
thiago
Message:

Ticket #3331 - Implementado a parte de arquivamento, e colocado informações em ingles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox/2.5.1-expresso1/expressoMail1_2/inc/class.imap_functions.inc.php

    r7885 r7888  
    26802680                return $return; 
    26812681        } 
    2682          
    2683     function delete_msg_archive_by_flag($params){ 
    2684         $folder = "INBOX/Trash"; 
    2685          
    2686         $mbox_stream = @imap_open("{".$this->imap_server.":".$this->imap_port.$this->imap_options."}".$folder, $this->username, $this->password) or die(serialize(array('imap_error' => $this->parse_error(imap_last_error())))); 
    2687  
    2688         $messages = imap_search($mbox_stream, 'KEYWORD "$archiverMsg"', SE_UID); 
    2689  
    2690         foreach($messages as $i => $id){ 
    2691             if(imap_delete($mbox_stream, $id, FT_UID)){ 
    2692  
    2693             } 
    2694         } 
    2695  
    2696         $return = array( 
    2697             "result" => "ok" 
    2698         ); 
    2699  
    2700         return json_encode($return); 
    2701     } 
    2702  
    2703     function get_last_msg_by_id($params){ 
     2682 
     2683    function get_info_msg_archiver($params){ 
    27042684         $folder = "INBOX/Trash"; 
    27052685         $mbox_stream = $this->open_mbox($folder); 
    27062686 
    2707         $messages = imap_search($mbox_stream, 'KEYWORD "$archiverMsg"', SE_UID); 
    2708  
    2709         foreach($messages as $i => $id){ 
     2687        foreach($params['idMsgs'] as $i => $id){ 
    27102688            $name = imap_headerinfo($mbox_stream, imap_msgno($mbox_stream ,$id)); 
    2711  
    27122689            $return[] =  array( 
    27132690                'uid' => $id, 
     
    27172694            ); 
    27182695        } 
    2719         //volta aqui 
    27202696         
    27212697        return json_encode($return); 
     
    29962972 
    29972973            $header = $this->get_header($msg_numb); 
     2974 
    29982975            $header_ = imap_fetchheader($this->mbox, $msg_numb, FT_UID); 
    29992976            $pattern = '/^[ \t]*Disposition-Notification-To:.*/mi'; 
     
    49184895        $error = array(); 
    49194896 
     4897 
     4898 
    49204899        foreach($sources as $index=>$src) 
    49214900        { 
    49224901            if($src!="") 
    49234902            { 
     4903                     
     4904                 
     4905 
    49244906                //If it is a MailArchiver incomming data 
    49254907                if($params['madata']) 
     
    49344916 
    49354917                //volta aqui 
    4936  
    4937                 $this->mbox = $this->open_mbox($dest_folder); 
    4938                 imap_setflag_full($this->mbox, $insert['msg_no'], '$archiverMsg' , ST_UID); 
     4918                $return['idsMsg'] = $insert['msg_no']; 
    49394919 
    49404920                if($insert['error']) 
Note: See TracChangeset for help on using the changeset viewer.