Don't decode already decoded from header

release-0.6
thomascube 14 years ago
parent 88ca38a356
commit 8c57f5977d

@ -732,7 +732,7 @@ function rcmail_create_reply_body($body, $bodyIsHtml)
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']));

Loading…
Cancel
Save