summaryrefslogtreecommitdiff
path: root/roundcubemail/program/include
diff options
context:
space:
mode:
authorthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-06-27 22:00:21 +0000
committerthomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c>2006-06-27 22:00:21 +0000
commit271af6a58c7d0e70253206423bcd0feaa47cd965 (patch)
tree5e36d37552505ad7a94718ff30fe77fc2b64e163 /roundcubemail/program/include
parentba607516db6c70c9e9eb14c5baecaf6e57859472 (diff)
Fixed bug #1483856 in class rcube_imap
git-svn-id: https://svn.roundcube.net/trunk@268 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include')
-rw-r--r--roundcubemail/program/include/rcube_imap.inc22
1 files changed, 16 insertions, 6 deletions
diff --git a/roundcubemail/program/include/rcube_imap.inc b/roundcubemail/program/include/rcube_imap.inc
index 7ad4ad082..16cfb522e 100644
--- a/roundcubemail/program/include/rcube_imap.inc
+++ b/roundcubemail/program/include/rcube_imap.inc
@@ -36,7 +36,7 @@ require_once('lib/utf7.inc');
*
* @package RoundCube Webmail
* @author Thomas Bruederli <roundcube@gmail.com>
- * @version 1.22
+ * @version 1.26
* @link http://ilohamail.org
*/
class rcube_imap
@@ -50,7 +50,6 @@ class rcube_imap
var $page_size = 10;
var $sort_field = 'date';
var $sort_order = 'DESC';
- var $default_charset = 'ISO-8859-1';
var $delimiter = NULL;
var $caching_enabled = FALSE;
var $default_folders = array('inbox', 'drafts', 'sent', 'junk', 'trash');
@@ -1715,8 +1714,13 @@ class rcube_imap
return $str;
}
-
-
+
+
+ /**
+ * Decode a mime-encoded string to internal charset
+ *
+ * @access static
+ */
function decode_mime_string($input)
{
$out = '';
@@ -1740,10 +1744,15 @@ class rcube_imap
}
// no encoding information, defaults to what is specified in the class header
- return rcube_charset_convert($input, $this->default_charset);
+ return rcube_charset_convert($input, 'ISO-8859-1');
}
+ /**
+ * Decode a part of a mime-encoded string
+ *
+ * @access static
+ */
function _decode_mime_string_part($str)
{
$a = explode('?', $str);
@@ -1817,11 +1826,12 @@ class rcube_imap
return rcube_charset_convert($body, $ctype_param['charset']);
// defaults to what is specified in the class header
- return rcube_charset_convert($body, $this->default_charset);
+ return rcube_charset_convert($body, 'ISO-8859-1');
}
+
/* --------------------------------
* private methods
* --------------------------------*/