Fix header charset decoding when opening a draft message

pull/36/merge
Thomas Bruederli 12 years ago
parent 5f40958300
commit 27be4e7644

@ -423,6 +423,8 @@ foreach ($parts as $header) {
$fvalue = $MESSAGE->get_header('reply-to'); $fvalue = $MESSAGE->get_header('reply-to');
else if ($header=='followupto' && !empty($MESSAGE->headers->others['mail-followup-to'])) else if ($header=='followupto' && !empty($MESSAGE->headers->others['mail-followup-to']))
$fvalue = $MESSAGE->get_header('mail-followup-to'); $fvalue = $MESSAGE->get_header('mail-followup-to');
$decode_header = false; // $MESSAGE->get_header() returns already decoded header values
} }
// split recipients and put them back together in a unique way // split recipients and put them back together in a unique way

@ -256,8 +256,7 @@ if (strlen($_POST['_draft_saveid']) > 3)
$message_id = rcmail_gen_message_id(); $message_id = rcmail_gen_message_id();
// set default charset // set default charset
$input_charset = $OUTPUT->get_charset(); $message_charset = isset($_POST['_charset']) ? $_POST['_charset'] : $OUTPUT->get_charset();
$message_charset = isset($_POST['_charset']) ? $_POST['_charset'] : $input_charset;
$EMAIL_FORMAT_ERROR = NULL; $EMAIL_FORMAT_ERROR = NULL;
$RECIPIENT_COUNT = 0; $RECIPIENT_COUNT = 0;

Loading…
Cancel
Save