$mailbox = $trash_folder;
fputs($imapConnection, "1 LIST \"$mailbox\" *\n");
$data = imapReadData($imapConnection , "1", false, $response, $message);
while (substr($data[0], strpos($data[0], " ")+1, 4) == "LIST") {
$mailbox = $trash_folder;
fputs($imapConnection, "1 LIST \"$mailbox\" *\n");
$data = imapReadData($imapConnection , "1", false, $response, $message);
while (substr($data[0], strpos($data[0], " ")+1, 4) == "LIST") {