- $imapConnection = loginToImapServer($username, $key, $imapServerAddress);
+
- fputs($imapConnection, "1 list \"\" *\n");
- $str = imapReadData($imapConnection);
+
+
- for ($i = 0;$i < count($str); $i++) {
- $mailbox = Chop($str[$i]);
- // find the quote at the begining of the mailbox name.
- // i subtract 1 from the strlen so it doesn't find the quote at the end of the mailbox name.
- $mailbox = findMailboxName($mailbox);
- $periodCount = countCharInString($mailbox, ".");
+\n";
+ echo " | \n";
+ if ($success == "subscribe") {
+ echo "" . _("Subscribed successfully!") . " ";
+ } else if ($success == "unsubscribe") {
+ echo "" . _("Unsubscribed successfully!") . " ";
+ } else if ($success == "delete") {
+ echo "" . _("Deleted folder successfully!") . " ";
+ } else if ($success == "create") {
+ echo "" . _("Created folder successfully!") . " ";
+ } else if ($success == "rename") {
+ echo "" . _("Renamed successfully!") . " ";
+ }
- $boxes[$i] = $boxes[$i] . readShortMailboxName($mailbox, ".");
- $long_name_boxes[$i] = $mailbox;
+ echo " " . _("refresh folder list") . "";
+ echo " | \n";
+ echo " \n";
}
+ $imapConnection = sqimap_login ($username, $key, $imapServerAddress, $imapPort, 0);
+ $boxes = sqimap_mailbox_list($imapConnection);
/** DELETING FOLDERS **/
- echo " |