Changeset 3798
- Timestamp:
- 02/22/11 11:25:46 (13 years ago)
- Location:
- branches/2.2/expressoMail1_2
- Files:
-
- 3 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); -
branches/2.2/expressoMail1_2/js/draw_api.js
r3779 r3798 1333 1333 td.innerHTML += " <img style='cursor:pointer' onclick='alert(\""+get_lang("This message is signed, but it is invalid. You should not trust on it.")+"\");' title='"+get_lang("Voided message")+"' src='templates/"+template+"/images/invalid.gif'>"; 1334 1334 } 1335 1335 1336 1336 if (info_msg.DispositionNotificationTo) 1337 1337 { 1338 td.innerHTML += ' <img style="cursor:pointer" alt="'+ get_lang('Message with read notification') + '" title="'+ get_lang('Message with read notification') + '" src="templates/'+template+'/images/notification.gif">';1338 td.innerHTML += ' <img id="disposition_notification_'+ID+'" style="cursor:pointer" alt="'+ get_lang('Message with read notification') + '" title="'+ get_lang('Message with read notification') + '" src="templates/'+template+'/images/notification.gif">'; 1339 1339 } 1340 1340 … … 1626 1626 tr0.appendChild(td0); 1627 1627 tbody_message.appendChild(tr0); 1628 1629 var important_message = document.createElement("INPUT"); 1630 important_message.id = "is_important_"+ID; 1631 important_message.name = "is_important"; 1632 important_message.type = "HIDDEN"; 1633 important_message.value = (info_msg.Importance == "" || info_msg.Importance == "Normal") ? "0": "1"; 1634 1635 options.appendChild(important_message); 1628 1636 } 1629 1637 ////////////////////////////////////////////////////////////////////////////////////////////////////// … … 1688 1696 tr1.appendChild(from_values); 1689 1697 tr1.appendChild(local_message); 1690 1691 1692 1698 1693 1699 if (info_msg.reply_to){ -
branches/2.2/expressoMail1_2/js/main.js
r3781 r3798 1316 1316 } 1317 1317 Element("subject_" + new_border_ID).value = data.subject; 1318 1319 if( Element("disposition_notification_" + border_ID) ) 1320 Element("return_receipt_" + new_border_ID).checked = true; 1321 1322 var element_important_message = Element("important_message_" + new_border_ID); 1323 if(element_important_message) { 1324 if(Element("is_important_" + border_ID).value == "1") element_important_message.checked = true; 1325 } 1318 1326 1319 1327 var divFiles = Element("divFiles_"+new_border_ID);
Note: See TracChangeset
for help on using the changeset viewer.