Changeset 5372
- Timestamp:
- 01/12/12 13:35:15 (12 years ago)
- Location:
- trunk/expressoMail1_2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/inc/class.imap_functions.inc.php
r5362 r5372 207 207 static function decodeMimeString( $string ) 208 208 { 209 return preg_replace_callback( '/\=\?([^\?]*)\?([qb])\?([^\?]*)\?=/i' ,array( self, 'decodeMimeStringCallback'), $string);209 return preg_replace_callback( '/\=\?([^\?]*)\?([qb])\?([^\?]*)\?=/i' ,array( 'self' , 'decodeMimeStringCallback'), $string); 210 210 } 211 211 … … 288 288 { 289 289 if($appendSample !== false && !isset($return['msg_sample'])) //verifica o msg_sample caso seja alterada a preferencia e não esteja em cache carregar 290 $return['msg_sample'] = $this->get_msg_sample($msg_number); 290 { 291 $return['msg_sample'] = $this->get_msg_sample($msg_number); 292 $this->cache->set( 'infoHead://'.$this->username.'://'.$this->mboxFolder.'://'.$msg_number , $return , $this->expirationCache); 293 } 291 294 292 295 return $return; 293 296 } 294 297 295 298 $importance = array(); 296 299 $mimeHeader = imap_fetchheader( $this->mbox, $msg_number , FT_UID ); //Resgata o Mime Header da mensagem 297 $mimeBody = imap_body( $this->mbox, $msg_number , FT_UID ); //Resgata o Mime Body da mensagem300 $mimeBody = imap_body( $this->mbox, $msg_number , FT_UID|FT_PEEK ); //Resgata o Mime Body da mensagem sem marcar como lida 298 301 $offsetToGMT = $this->functions->CalculateDateOffset(); 299 302 $return['ContentType'] = $this->getMessageType( $msg_number , $mimeHeader , $mimeBody ); … … 308 311 $return['subject'] = ( isset($header->subject) && trim($header->subject) !== '' ) ? self::decodeMimeString($header->subject) : $this->functions->getLang('(no subject) '); 309 312 $return['attachment'] = ( preg_match('/((Content-Disposition:(.)*(\r\n filename=|filename=))|(Content-Type:(.)*(\r\n name=|name=)))/', $mimeBody) ) ? '1' : '0'; //Verifica se a anexos na mensagem 310 $return['reply_toaddress'] = isset($header->reply_toaddress) ? $header->reply_toaddress: '';313 $return['reply_toaddress'] = isset($header->reply_toaddress) ? self::decodeMimeString($header->reply_toaddress) : ''; 311 314 $return['flag'] = $header->Unseen.$header->Recent.$header->Flagged.$header->Draft.$header->Answered.$header->Deleted.( $return['attachment'] === '1' ? 'T': '' ); 312 315 … … 328 331 if( $this->useCache === true ) 329 332 $this->cache->set( 'infoHead://'.$this->username.'://'.$this->mboxFolder.'://'.$msg_number , $return , $this->expirationCache); 330 333 331 334 return $return; 332 335 } … … 4424 4427 { 4425 4428 $elem = $this->get_info_head_msg($new_search); 4426 4429 $elem['udate'] = gmdate('d/m/Y', $elem['udate'] + $this->functions->CalculateDateOffset()); 4427 4430 $elem['boxname'] = mb_convert_encoding( $name_box, "ISO-8859-1", "UTF7-IMAP" ); 4428 4431 $elem['uid'] = $new_search; … … 4469 4472 { 4470 4473 foreach($search_criteria as $new_search) 4471 { 4474 { 4472 4475 $elem = $this->get_info_head_msg( $new_search ); 4476 $elem['udate'] = gmdate('d/m/Y', $elem['udate'] + $this->functions->CalculateDateOffset()); 4473 4477 $elem['boxname'] = mb_convert_encoding( $name_box, "ISO-8859-1", "UTF7-IMAP" ); 4474 4478 $elem['uid'] = $new_search; 4475 4479 /* compare dates in ordering */ 4476 $elem['udatecomp'] = substr ($elem['udate'], -4) ."-". substr ($elem['udate'], 3, 2) ."-". substr ($elem['udate'], 0, 2); 4480 $elem['udatecomp'] = substr ($elem['udate'], -4) ."-". substr ($elem['udate'], 3, 2) ."-". substr ($elem['udate'], 0, 2); 4477 4481 $retorno[] = $elem; 4478 4482 } -
trunk/expressoMail1_2/setup/phpgw_pt-br.lang
r5359 r5372 740 740 Error marking messages. expressoMail1_2 pt-br Erro ao marcar as mensagens. 741 741 Error importing. expressoMail1_2 pt-br Erro ao Importar. 742 Using cache for list of messages admin pt-br Tempo maximo para listagem de mensagems ficar no cache742 Using cache for list of messages admin pt-br Usar cache para lista de mensagens 743 743 Maximum time for the list of messages keep in cache admin pt-br Tempo maximo para listagem de mensagems ficar no cache
Note: See TracChangeset
for help on using the changeset viewer.