summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps/mail/func.inc
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-02-10 11:49:29 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2009-02-10 11:49:29 +0000
commit2d2bfc3abbd41ddafbeb8c741270dfb32547b2e5 (patch)
tree8419ba89b845f750fe533f7b4820b883193f80c6 /roundcubemail/program/steps/mail/func.inc
parentc4bafd61dcc839b213c12b319da65ad3d02b1ad3 (diff)
- Use default_charset for messages without specified charset (#1485661, #1484961)
git-svn-id: https://svn.roundcube.net/trunk@2286 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps/mail/func.inc')
-rw-r--r--roundcubemail/program/steps/mail/func.inc6
1 files changed, 2 insertions, 4 deletions
diff --git a/roundcubemail/program/steps/mail/func.inc b/roundcubemail/program/steps/mail/func.inc
index 0ccc2cc13..f54d4facd 100644
--- a/roundcubemail/program/steps/mail/func.inc
+++ b/roundcubemail/program/steps/mail/func.inc
@@ -295,8 +295,7 @@ function rcmail_message_list($attrib)
$out .= sprintf("<td class=\"icon\">%s</td>\n", $message_icon ? sprintf($image_tag, $skin_path, $message_icon, '') : '');
- if (!empty($header->charset))
- $IMAP->set_charset($header->charset);
+ $IMAP->set_charset(!empty($header->charset) ? $header->charset : $CONFIG['default_charset']);
// format each col
foreach ($a_show_cols as $col)
@@ -404,8 +403,7 @@ function rcmail_js_message_list($a_headers, $insert_top=FALSE)
if (empty($header))
continue;
- if (!empty($header->charset))
- $IMAP->set_charset($header->charset);
+ $IMAP->set_charset(!empty($header->charset) ? $header->charset : $CONFIG['default_charset']);
// remove 'attachment' and 'flag' columns, we don't need them here
if(($key = array_search('attachment', $a_show_cols)) !== FALSE)