/** check if they would like to move it to the trash folder or not */
sqimap_messages_copy($imapConnection, $msg[$i], $msg[$i], $targetMailbox);
sqimap_messages_flag($imapConnection, $msg[$i], $msg[$i], "Deleted");
/** check if they would like to move it to the trash folder or not */
sqimap_messages_copy($imapConnection, $msg[$i], $msg[$i], $targetMailbox);
sqimap_messages_flag($imapConnection, $msg[$i], $msg[$i], "Deleted");