summaryrefslogtreecommitdiff
path: root/program/include/main.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/include/main.inc
parent9814721e8ddee4e26cc58cd47301e5d741048a22 (diff)
Add configurable default charset for message decoding
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 247cdf1a9..e2005e7f9 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -290,6 +290,9 @@ function rcmail_imap_init($connect=FALSE)
function rcmail_set_imap_prop()
{
global $CONFIG, $IMAP;
+
+ if (!empty($CONFIG['default_charset']))
+ $IMAP->set_charset($CONFIG['default_charset']);
// set root dir from config
if (!empty($CONFIG['imap_root']))