thomascube
2011-02-02 8c57f5977d47707a99368ed9adb8db18d88fc352
Don't decode already decoded from header

1 files modified
2 ■■■ changed files
program/steps/mail/compose.inc 2 ●●● patch | view | raw | blame | history
program/steps/mail/compose.inc
@@ -732,7 +732,7 @@
  global $RCMAIL, $MESSAGE, $LINE_LENGTH;
  // build reply prefix
  $from = array_pop($RCMAIL->imap->decode_address_list($MESSAGE->get_header('from')));
  $from = array_pop($RCMAIL->imap->decode_address_list($MESSAGE->get_header('from'), 1, false));
  $prefix = sprintf("On %s, %s wrote:",
    $MESSAGE->headers->date, $from['name'] ? $from['name'] : idn_to_utf8($from['mailto']));