alecpl
2010-12-08 72b807aa6ac0a66cd2d2f2e898e6af678ed560a8
- Fix empty sender in reply prefix (#1487454)


1 files modified
2 ■■■ changed files
program/steps/mail/compose.inc 2 ●●● patch | view | raw | blame | history
program/steps/mail/compose.inc
@@ -742,7 +742,7 @@
  // build reply prefix
  $from = array_pop($RCMAIL->imap->decode_address_list($MESSAGE->get_header('from')));
  $prefix = sprintf("On %s, %s wrote:",
    $MESSAGE->headers->date, $from['name'] ? $from['name'] : idn_to_utf8($from['email']));
    $MESSAGE->headers->date, $from['name'] ? $from['name'] : idn_to_utf8($from['mailto']));
  if (!$bodyIsHtml) {
    $body = preg_replace('/\r?\n/', "\n", $body);