-for ($i = 0, $cnt=count($boxes); $i < $cnt; $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(' ', ' ',
- imap_utf7_decode_local($boxes[$i]['unformatted-disp']));
- echo "<OPTION SELECTED VALUE=\"$box\">$box2</option>\n";
- } else {
- $box = $boxes[$i]['unformatted'];
- $box2 = str_replace(' ', ' ',
- imap_utf7_decode_local($boxes[$i]['unformatted-disp']));
- if (strtolower($imap_server_type) != 'courier' ||
- strtolower($box) != "inbox.trash")
- echo "<OPTION VALUE=\"$box\">$box2</option>\n";
- }
- }