X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Ffolders.php;h=26b9709b85d92353bd7fcd4a4f5283fb5b888ee3;hb=34a6b7c2cede50f12a9ce43fef49e28ce324d3b6;hp=5abf8b26ad2516859c9eed8d1ee671cbe2c2933a;hpb=0037f04821b088de88f51ee46a34f8b7fbdf7d63;p=squirrelmail.git diff --git a/src/folders.php b/src/folders.php index 5abf8b26..26b9709b 100644 --- a/src/folders.php +++ b/src/folders.php @@ -14,6 +14,7 @@ */ require_once('../src/validate.php'); +require_once('../functions/imap_utf7_decode_local.php'); require_once('../functions/imap.php'); require_once('../functions/array.php'); require_once('../functions/plugin.php'); @@ -80,12 +81,15 @@ for ($i = 0; $i < count($boxes); $i++) { if (!in_array('noinferiors', $boxes[$i]['flags'])) { if ((strtolower($boxes[$i]['unformatted']) == 'inbox') && $default_sub_of_inbox) { + $box = $boxes[$i]['unformatted']; - $box2 = str_replace(' ', ' ', $boxes[$i]['unformatted-disp']); + $box2 = imap_utf7_decode_local( + str_replace(' ', ' ', $boxes[$i]['unformatted-disp'])); echo "\n"; } else { $box = $boxes[$i]['unformatted']; - $box2 = str_replace(' ', ' ', $boxes[$i]['unformatted-disp']); + $box2 = imap_utf7_decode_local( + str_replace(' ', ' ', $boxes[$i]['unformatted-disp'])); if (strtolower($imap_server_type) != 'courier' || strtolower($box) != "inbox.trash") echo "\n"; @@ -149,7 +153,8 @@ if ($count_special_folders < count($boxes)) { ($boxes[$i]['unformatted'] != $draft_folder)) { $box = $boxes[$i]['unformatted-dm']; - $box2 = str_replace(' ', ' ', $boxes[$i]['unformatted-disp']); + $box2 = imap_utf7_decode_local( + str_replace(' ', ' ', $boxes[$i]['unformatted-disp'])); if (strtolower($imap_server_type) != 'courier' || strtolower($box) != 'inbox.trash') { echo "\n"; } @@ -183,10 +188,12 @@ if ($count_special_folders < count($boxes)) { ($boxes[$i]['unformatted'] != $trash_folder) && ($boxes[$i]['unformatted'] != $sent_folder) && ($boxes[$i]['unformatted'] != $draft_folder) && + (!in_array('noselect', $boxes[$i]['flags'])) && ((strtolower($imap_server_type) != 'courier') || (strtolower($boxes[$i]['unformatted']) != 'inbox.trash'))) { $box = $boxes[$i]['unformatted-dm']; - $box2 = str_replace(' ', ' ', $boxes[$i]['unformatted-disp']); + $box2 = imap_utf7_decode_local( + str_replace(' ', ' ', $boxes[$i]['unformatted-disp'])); echo " \n"; } } @@ -216,7 +223,8 @@ if ($count_special_folders < count($boxes)) { ($boxes[$i]["unformatted"] != $sent_folder) && ($boxes[$i]["unformatted"] != $draft_folder)) { $box = $boxes[$i]["unformatted-dm"]; - $box2 = str_replace(' ', ' ', $boxes[$i]["unformatted-disp"]); + $box2 = imap_utf7_decode_local( + str_replace(' ', ' ', $boxes[$i]["unformatted-disp"])); echo "