summaryrefslogtreecommitdiff
path: root/program/steps/mail/show.inc
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2008-03-21 11:45:46 +0000
committerthomascube <thomas@roundcube.net>2008-03-21 11:45:46 +0000
commit17b5fb797f4bc142fee8cd72ade3890b4dfdbd82 (patch)
treeacdaaf60ca4ed2f24f64ba5d8d46ff2233f6eb7a /program/steps/mail/show.inc
parent9814721e8ddee4e26cc58cd47301e5d741048a22 (diff)
Add configurable default charset for message decoding
Diffstat (limited to 'program/steps/mail/show.inc')
-rw-r--r--program/steps/mail/show.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc
index 5cd5e8360..27d26603f 100644
--- a/program/steps/mail/show.inc
+++ b/program/steps/mail/show.inc
@@ -30,6 +30,10 @@ if ($_GET['_uid'])
$MESSAGE = array('UID' => get_input_value('_uid', RCUBE_INPUT_GET));
$MESSAGE['headers'] = $IMAP->get_headers($MESSAGE['UID']);
+ // set message charset as default
+ if (!empty($MESSAGE['headers']->charset))
+ $IMAP->set_charset($MESSAGE['headers']->charset);
+
// go back to list if message not found (wrong UID)
if (!$MESSAGE['headers'])
{