diff -ruNp roundcubemail-1246.org/program/include/rcube_imap.inc roundcubemail-1246/program/include/rcube_imap.inc
|
old
|
new
|
|
| 1016 | 1016 | */ |
| 1017 | 1017 | function &get_structure($uid) |
| 1018 | 1018 | { |
| | 1019 | global $CONFIG; |
| | 1020 | |
| 1019 | 1021 | $cache_key = $this->mailbox.'.msg'; |
| 1020 | 1022 | $headers = &$this->get_cached_message($cache_key, $uid, true); |
| 1021 | 1023 | |
| … |
… |
|
| 1028 | 1030 | return FALSE; |
| 1029 | 1031 | |
| 1030 | 1032 | $structure_str = iil_C_FetchStructureString($this->conn, $this->mailbox, $msg_id); |
| | 1033 | if ( preg_match ('/US-ASCII/', $structure_str) ) { |
| | 1034 | if ( $CONFIG['default_charset'] ) |
| | 1035 | $structure_str = preg_replace ('/US-ASCII/', $CONFIG['default_charset'], $structure_str); |
| | 1036 | } |
| 1031 | 1037 | $structure = iml_GetRawStructureArray($structure_str); |
| 1032 | 1038 | $struct = false; |
| 1033 | 1039 | |
| … |
… |
|
| 2334 | 2340 | */ |
| 2335 | 2341 | function decode_mime_string($input, $fallback=null) |
| 2336 | 2342 | { |
| | 2343 | global $CONFIG; |
| 2337 | 2344 | $out = ''; |
| 2338 | 2345 | |
| 2339 | 2346 | $pos = strpos($input, '=?'); |
| … |
… |
|
| 2359 | 2366 | } |
| 2360 | 2367 | |
| 2361 | 2368 | // no encoding information, use fallback |
| 2362 | | return rcube_charset_convert($input, !empty($fallback) ? $fallback : 'ISO-8859-1'); |
| | 2369 | $def_charset = $CONFIG['default_charset'] ? $CONFIG['default_charset'] : 'ISO-8859-1'; |
| | 2370 | return rcube_charset_convert($input, !empty($fallback) ? $fallback : $def_charset); |
| 2363 | 2371 | } |
| 2364 | 2372 | |
| 2365 | 2373 | |