Changeset 5758b9b in github


Ignore:
Timestamp:
Sep 16, 2008 2:55:04 PM (5 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
d93fc99
Parents:
d734041f
Message:
  • Added Reply-To to forwarded emails (#1485315)
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CHANGELOG

    rd734041f r5758b9b  
    88- Allow and use spellcheck attribute for input/textarea fields (#1485060) 
    99- Added icons for forwarded/forwarded+replied messages (#1485257) 
     10- Added Reply-To to forwarded emails (#1485315) 
    1011 
    11122008/09/15 (thomasb) 
  • program/steps/mail/compose.inc

    r491a6e2 r5758b9b  
    544544  if (!$bodyIsHtml) 
    545545  { 
    546     $prefix = sprintf("\n\n\n-------- Original Message --------\nSubject: %s\nDate: %s\nFrom: %s\nTo: %s\n\n", 
    547       $MESSAGE->subject, 
    548       $MESSAGE->headers->date, 
    549       $MESSAGE->get_header('from'), 
    550       $MESSAGE->get_header('to')); 
     546    $prefix = "\n\n\n-------- Original Message --------\n"; 
     547    $prefix .= 'Subject: ' . $MESSAGE->subject . "\n"; 
     548    $prefix .= 'Date: ' . $MESSAGE->headers->date . "\n"; 
     549    $prefix .= 'From: ' . $MESSAGE->get_header('from') . "\n"; 
     550    $prefix .= 'To: ' . $MESSAGE->get_header('to') . "\n"; 
     551    if ($MESSAGE->headers->replyto && $MESSAGE->headers->replyto != $MESSAGE->headers->from) 
     552      $prefix .= 'Reply-To: ' . $MESSAGE->get_header('replyto') . "\n"; 
     553    $prefix .= "\n"; 
    551554  } 
    552555  else 
     
    558561        "<tr><th align=\"right\" nowrap=\"nowrap\" valign=\"baseline\">Date: </th><td>%s</td></tr>" . 
    559562        "<tr><th align=\"right\" nowrap=\"nowrap\" valign=\"baseline\">From: </th><td>%s</td></tr>" . 
    560         "<tr><th align=\"right\" nowrap=\"nowrap\" valign=\"baseline\">To: </th><td>%s</td></tr>" . 
    561         "</tbody></table><br>", 
     563        "<tr><th align=\"right\" nowrap=\"nowrap\" valign=\"baseline\">To: </th><td>%s</td></tr>", 
    562564      Q($MESSAGE->subject), 
    563565      Q($MESSAGE->headers->date), 
    564566      htmlspecialchars(Q($MESSAGE->get_header('from'), 'replace'), ENT_COMPAT, $OUTPUT->get_charset(), true), 
    565       htmlspecialchars(Q($MESSAGE->get_header('to'), 'replace'), ENT_COMPAT, $OUTPUT->get_charset(), true)); 
     567        htmlspecialchars(Q($MESSAGE->get_header('to'), 'replace'), ENT_COMPAT, $OUTPUT->get_charset(), true)); 
     568 
     569    if ($MESSAGE->headers->replyto && $MESSAGE->headers->replyto != $MESSAGE->headers->from) 
     570      $prefix .= sprintf("<tr><th align=\"right\" nowrap=\"nowrap\" valign=\"baseline\">Reply-To: </th><td>%s</td></tr>", 
     571        htmlspecialchars(Q($MESSAGE->get_header('replyto'), 'replace'), ENT_COMPAT, $OUTPUT->get_charset(), true)); 
     572 
     573    $prefix .= "</tbody></table><br>"; 
    566574  } 
    567575 
Note: See TracChangeset for help on using the changeset viewer.