- Timestamp:
- 06/13/12 16:56:03 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/expressoMail1_2/inc/class.imap_functions.inc.php
r6474 r6482 1092 1092 } 1093 1093 1094 $body = $this->decodeBody(1094 /*$body = $this->decodeBody( 1095 1095 imap_fetchbody( 1096 1096 $this->mbox, … … 1101 1101 $msg->encoding[ $msg_number ][ $values ], 1102 1102 $msg->charset[ $msg_number ][ $values ] 1103 ); 1103 ); */ 1104 1105 $body = $this->decodeBody( 1106 imap_fetchbody( 1107 $this->mbox, 1108 $msg_number, 1109 $attachment['part_in_msg'] . ".1", 1110 FT_UID 1111 ), 1112 $msg->encoding[ $msg_number ][ $values ], 1113 $msg->charset[ $msg_number ][ $values ] 1114 ); 1104 1115 1105 1116 if ( strtolower( $msg->structure[$msg_number]->parts[1]->parts[0]->subtype ) == 'plain' ) … … 4122 4133 } 4123 4134 4124 //Por Bruno Costa(bruno.vieira-costa@serpro.gov.br - Insere emails no imap a partir do fonte do mesmo. Se o argumento timestamp for passado ele utiliza do script python4125 ///expressoMail1_2/imap.py para inserir uma msg com o horário correto pois isso não é porssível com a função imap_append do php.4126 4127 4135 function insert_email($source,$folder,$timestamp,$flags){ 4128 4136 $username = $_SESSION['phpgw_info']['expressomail']['user']['userid']; … … 4136 4144 imap_createmailbox($mbox_stream,imap_utf7_encode("{".$imap_server."}".$folder)); 4137 4145 } 4146 4147 // string date ( string $format [, int $timestamp = time() ] ) 4148 // bool imap_append ( resource $imap_stream , string $mailbox , string $message [, string $options = NULL [, string $internal_date = NULL ]] ) 4149 // 'd-M-Y H:i:s O' 4150 4151 $return = array(); 4138 4152 if($timestamp){ 4139 4153 $tempDir = $_SESSION['phpgw_info']['server']['temp_dir']; … … 4147 4161 $return['append'] = imap_append($mbox_stream, "{".$imap_server.":".$imap_port."}".$folder, $source, "\\Seen"); 4148 4162 } 4163 4164 if (!empty($return['command'])) 4165 { 4166 list ($result, $msg) = explode(':',$return['command']); 4167 if (strtoupper($result) === 'NO') 4168 { 4169 $return['error'] = $msg; 4170 return $return; 4171 } 4172 } 4173 4149 4174 $status = imap_status($mbox_stream, "{".$this->imap_server.":".$this->imap_port."}".$folder, SA_UIDNEXT); 4150 4175
Note: See TracChangeset
for help on using the changeset viewer.