From 17b5fb797f4bc142fee8cd72ade3890b4dfdbd82 Mon Sep 17 00:00:00 2001 From: thomascube <thomas@roundcube.net> Date: Fri, 21 Mar 2008 07:45:46 -0400 Subject: [PATCH] Add configurable default charset for message decoding --- program/steps/mail/show.inc | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/program/steps/mail/show.inc b/program/steps/mail/show.inc index 5cd5e83..27d2660 100644 --- a/program/steps/mail/show.inc +++ b/program/steps/mail/show.inc @@ -30,6 +30,10 @@ $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']) { -- Gitblit v1.9.1