- Timestamp:
- 02/22/11 11:25:46 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/expressoMail1_2/inc/class.imap_functions.inc.php
r3790 r3798 582 582 $return['signature'] = $return_get_body['signature']; 583 583 } 584 585 $flag = preg_match('/importance *: *(.*)\r/i', $header_, $importance); 586 $return['Importance'] = ($flag == 0) ? "Normal" : $importance[1]; 584 587 585 588 $pattern = '/^[ \t]*Disposition-Notification-To:[ ]*<?[[:alnum:]\._-]+@[[:alnum:]_-]+[\.[:alnum:]]+>?/sm'; … … 608 611 $return['msg_folder'] = $msg_folder; 609 612 610 611 613 $offset = $this->functions->CalculateDateOffset(); 614 $msgTimestamp = $header->udate + $offset; 612 615 613 616 $date_msg = gmdate("d/m/Y",$msgTimestamp); … … 2678 2681 $toaddress = $params['input_to']; 2679 2682 $ccaddress = $params['input_cc']; 2680 $ccoaddress = $params['input_cco']; 2681 $replytoaddress = $params['input_replyto']; 2683 $ccoaddress = $params['input_cco']; 2684 $return_receipt = $params['input_return_receipt']; 2685 $is_important = $params['input_important_message']; 2682 2686 $subject = $params['input_subject']; 2683 2687 $msg_uid = $params['msg_id']; … … 2697 2701 $folder = @eregi_replace("INBOX.", "INBOX".$this->imap_delimiter, $folder); 2698 2702 // End Fix. 2699 if(strtoupper($folder) == 'INBOX/DRAFTS') 2700 { 2701 $mail->SaveMessageAsDraft = $folder; 2702 } 2703 if(strtoupper($folder) == 'INBOX/DRAFTS') $mail->SaveMessageAsDraft = $folder; 2704 2703 2705 $mail->SaveMessageInFolder = $folder; 2704 2706 $mail->SMTPDebug = false; … … 2717 2719 $this->add_recipients("to", $toaddress, &$mail); 2718 2720 $this->add_recipients("cc", $ccaddress, &$mail); 2719 2721 $this->add_recipients("cco", $ccoaddress, &$mail); 2720 2722 $mail->AddReplyTo($replytoaddress); 2721 2723 $mail->Subject = $subject; 2722 2724 $mail->IsHTML(true); 2723 2725 $mail->Body = $body; 2726 2727 // Important message 2728 if($is_important) 2729 $mail->isImportant(); 2730 2731 // Disposition-Notification-To 2732 if ($return_receipt) 2733 $mail->ConfirmReadingTo = $_SESSION['phpgw_info']['expressomail']['user']['email']; 2724 2734 2725 2735 $return_forward = $this->buildEmbeddedImages($mail,$msg_uid,$forwarding_attachments);
Note: See TracChangeset
for help on using the changeset viewer.