X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fmove_messages.php;h=c234a5db085e7e43722f4f46734ae8b2ce2089c2;hb=3d1c7564d321f70744f66a2bd818ad97c59d00ea;hp=8fcc2e51db7e84e6dcc163bda7258f36ae83ecd4;hpb=05207a68b0446f5da0e2e0aa86e9edbe85a40ada;p=squirrelmail.git diff --git a/src/move_messages.php b/src/move_messages.php index 8fcc2e51..c234a5db 100644 --- a/src/move_messages.php +++ b/src/move_messages.php @@ -1,44 +1,152 @@ -"; - $imapConnection = loginToImapServer($username, $key, $imapServerAddress); - - // switch to the mailbox, and get the number of messages in it. - selectMailbox($imapConnection, $mailbox, $numMessages, $imapServerAddress); - - if (strtolower($move_or_delete) == "delete selected messages") { - // Marks the selected messages ad 'Deleted' - $j = 0; - $i = 0; - while ($j < count($msg)) { - if ($msg[$i]) { - /** check if they would like to move it to the trash folder or not */ - if ($move_to_trash == true) { - $success = copyMessages($imapConnection, $msg[$i], $msg[$i], $trash_folder); - if ($success == true) - setMessageFlag($imapConnection, $msg[$i], $msg[$i], "Deleted"); + +