- Timestamp:
- 02/18/13 13:48:17 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.5.1-expresso1/expressoMail1_2/inc/class.imap_functions.inc.php
r7885 r7888 2680 2680 return $return; 2681 2681 } 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){ 2704 2684 $folder = "INBOX/Trash"; 2705 2685 $mbox_stream = $this->open_mbox($folder); 2706 2686 2707 $messages = imap_search($mbox_stream, 'KEYWORD "$archiverMsg"', SE_UID); 2708 2709 foreach($messages as $i => $id){ 2687 foreach($params['idMsgs'] as $i => $id){ 2710 2688 $name = imap_headerinfo($mbox_stream, imap_msgno($mbox_stream ,$id)); 2711 2712 2689 $return[] = array( 2713 2690 'uid' => $id, … … 2717 2694 ); 2718 2695 } 2719 //volta aqui2720 2696 2721 2697 return json_encode($return); … … 2996 2972 2997 2973 $header = $this->get_header($msg_numb); 2974 2998 2975 $header_ = imap_fetchheader($this->mbox, $msg_numb, FT_UID); 2999 2976 $pattern = '/^[ \t]*Disposition-Notification-To:.*/mi'; … … 4918 4895 $error = array(); 4919 4896 4897 4898 4920 4899 foreach($sources as $index=>$src) 4921 4900 { 4922 4901 if($src!="") 4923 4902 { 4903 4904 4905 4924 4906 //If it is a MailArchiver incomming data 4925 4907 if($params['madata']) … … 4934 4916 4935 4917 //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']; 4939 4919 4940 4920 if($insert['error'])
Note: See TracChangeset
for help on using the changeset viewer.