Changeset 3798


Ignore:
Timestamp:
02/22/11 11:25:46 (13 years ago)
Author:
thiagoaos
Message:

Ticket #1567 - Corrigido edição do rascunho mantendo as opções dos checkbox.

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  
    582582            $return['signature']        = $return_get_body['signature']; 
    583583                } 
     584                 
     585                $flag = preg_match('/importance *: *(.*)\r/i', $header_, $importance); 
     586                $return['Importance'] = ($flag == 0) ? "Normal" : $importance[1]; 
    584587 
    585588                $pattern = '/^[ \t]*Disposition-Notification-To:[ ]*<?[[:alnum:]\._-]+@[[:alnum:]_-]+[\.[:alnum:]]+>?/sm'; 
     
    608611                $return['msg_folder'] = $msg_folder; 
    609612 
    610                 $offset = $this->functions->CalculateDateOffset(); 
    611                 $msgTimestamp = $header->udate + $offset; 
     613                $offset = $this->functions->CalculateDateOffset(); 
     614                $msgTimestamp = $header->udate + $offset; 
    612615 
    613616                $date_msg = gmdate("d/m/Y",$msgTimestamp); 
     
    26782681                $toaddress = $params['input_to']; 
    26792682                $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']; 
    26822686                $subject = $params['input_subject']; 
    26832687                $msg_uid = $params['msg_id']; 
     
    26972701                $folder = @eregi_replace("INBOX.", "INBOX".$this->imap_delimiter, $folder); 
    26982702                // End Fix. 
    2699                 if(strtoupper($folder) == 'INBOX/DRAFTS') 
    2700                     { 
    2701                         $mail->SaveMessageAsDraft = $folder; 
    2702                     } 
     2703                if(strtoupper($folder) == 'INBOX/DRAFTS') $mail->SaveMessageAsDraft = $folder; 
     2704 
    27032705                $mail->SaveMessageInFolder = $folder; 
    27042706                $mail->SMTPDebug = false; 
     
    27172719                $this->add_recipients("to", $toaddress, &$mail); 
    27182720                $this->add_recipients("cc", $ccaddress, &$mail); 
    2719                 $this->add_recipients("cco", $ccoaddress, &$mail); 
     2721    $this->add_recipients("cco", $ccoaddress, &$mail); 
    27202722                $mail->AddReplyTo($replytoaddress); 
    27212723                $mail->Subject = $subject; 
    27222724                $mail->IsHTML(true); 
    27232725                $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']; 
    27242734 
    27252735                $return_forward = $this->buildEmbeddedImages($mail,$msg_uid,$forwarding_attachments);  
  • branches/2.2/expressoMail1_2/js/draw_api.js

    r3779 r3798  
    13331333                        td.innerHTML += "&nbsp;<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'>"; 
    13341334        } 
    1335  
     1335         
    13361336        if (info_msg.DispositionNotificationTo) 
    13371337        { 
    1338                 td.innerHTML += '&nbsp;<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 += '&nbsp;<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">'; 
    13391339        } 
    13401340 
     
    16261626                tr0.appendChild(td0); 
    16271627                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); 
    16281636        } 
    16291637        ////////////////////////////////////////////////////////////////////////////////////////////////////// 
     
    16881696        tr1.appendChild(from_values); 
    16891697        tr1.appendChild(local_message); 
    1690  
    1691  
    16921698 
    16931699        if (info_msg.reply_to){ 
  • branches/2.2/expressoMail1_2/js/main.js

    r3781 r3798  
    13161316                        } 
    13171317                        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                        } 
    13181326 
    13191327                        var divFiles = Element("divFiles_"+new_border_ID); 
Note: See TracChangeset for help on using the changeset viewer.