- if (substr($boxes[$i]["unformatted"], 0, strlen($mailbox . $dm)) == ($mailbox . $dm)) {
- addChildNodeToTree($boxes[$i]["unformatted"], $foldersTree);
+ if (substr($boxes[$i]["unformatted"], 0, strlen($mailbox_no_dm . $dm)) == ($mailbox_no_dm . $dm)) {
+// echo "<B>".$boxes[$i]["unformatted-dm"] . "</b><BR>";
+ addChildNodeToTree($boxes[$i]["unformatted"], $boxes[$i]["unformatted-dm"], $foldersTree);