- Timestamp:
- 09/04/12 11:43:49 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sandbox/2.5.0-expresso1/expressoMail1_2/inc/class.imap_functions.inc.php
r7070 r7157 5436 5436 } 5437 5437 5438 5439 /* Airton 5440 * Fazendo um port dos métodos necessários para o arquivamento de mensagens 5441 */ 5442 //MailArchiver -> get offsettogmt as a global javascript variable, invoked at "main.js", init() 5443 function get_offset_gmt(){ 5444 return($this->functions->CalculateDateOffset()); 5445 } 5446 5447 //MailArchiver -> get message flags only, invoked at archive operation 5448 function get_msg_flags($args){ 5449 $msg_folder = $args['folder']; 5450 $msg_n = $args['msg_number']; 5451 5452 $arr_msg = explode(",", $msg_n); 5453 5454 for($i=0; $i<count($arr_msg); $i++){ 5455 5456 if(!$this->mbox || !is_resource($this->mbox)) 5457 $this->mbox = $this->open_mbox($msg_folder); 5458 5459 if(!is_resource($this->mbox)) 5460 return(false); 5461 5462 $header = @imap_headerinfo($this->mbox, imap_msgno($this->mbox, $arr_msg[$i]), 80, 255); 5463 5464 if (!is_object($header)) 5465 return false; 5466 5467 $taglist[$i]["msgid"] = $msg_n; 5468 $taglist[$i]["unseen"] = $header->Unseen; 5469 $taglist[$i]["recent"] = $header->Recent; 5470 $taglist[$i]["flagged"] = $header->Flagged; 5471 $taglist[$i]["draft"] = $header->Draft; 5472 $taglist[$i]["answered"] = $header->Answered; 5473 $taglist[$i]["deleted"] = $header->Deleted; 5474 5475 if($header->Answered =='A' && $header->Draft == 'X') 5476 $taglist[$i]['forwarded'] = 'F'; 5477 else 5478 $taglist[$i]['forwarded'] = ' '; 5479 5480 if($_SESSION['phpgw_info']['user']['preferences']['expressoMail']['use_important_flag']) { 5481 $flag = preg_match('/importance *: *(.*)\r/i',imap_fetchheader($this->mbox, imap_msgno($this->mbox, $arr_msg[$i])),$importance); 5482 $taglist[$i]["importance"] = $flag==0?"Normal":$importance[1]; 5483 } 5484 } 5485 return $taglist; 5486 } 5487 /* Airton 5488 * Fim dos métodos 5489 */ 5490 5438 5491 } 5439 5492 ?>
Note: See TracChangeset
for help on using the changeset viewer.