X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=src%2Fmove_messages.php;h=33967ba42c639dddbe3f619c511e751606cf777e;hp=da8d6707b87e3dbeb267cafdb9206148d166ca76;hb=8b673ac145ad6dc77796fc0c1ef48094c76b46e1;hpb=4ccd80f8bf6138ca14e89f5a65b1af401d7b6358
diff --git a/src/move_messages.php b/src/move_messages.php
index da8d6707..33967ba4 100644
--- a/src/move_messages.php
+++ b/src/move_messages.php
@@ -46,6 +46,7 @@
// loop because we never increment j. so check to see if msg[0] is set or not to fix this.
while ($j < count($msg)) {
if ($msg[$i]) {
+ echo $msg[$i] . "
";
sqimap_messages_delete($imapConnection, $msg[$i], $msg[$i], $mailbox);
$j++;
}
@@ -66,10 +67,10 @@
// loop because we never increment j. so check to see if msg[0] is set or not to fix this.
while ($j < count($msg)) {
if ($msg[$i]) {
+ echo $msg[$i] . "
";
/** check if they would like to move it to the trash folder or not */
- $success = sqimap_messages_copy($imapConnection, $msg[$i], $msg[$i], $targetMailbox);
- if ($success == true)
- sqimap_messages_flag($imapConnection, $msg[$i], $msg[$i], "Deleted");
+ sqimap_messages_copy($imapConnection, $msg[$i], $msg[$i], $targetMailbox);
+ sqimap_messages_flag($imapConnection, $msg[$i], $msg[$i], "Deleted");
$j++;
}
$i++;