toFolder = getMailbox(mailboxName, session, true);
} catch (FolderException e) {
e.setResponseCode("TRYCREATE");
throw e;
}
<BUG>List<Long> copiedUidsOld = new ArrayList<Long>();
List<Long> copiedUidsNew = new ArrayList<Long>();
long[] uids = currentMailbox.getMessageUids();</BUG>
for (long uid : uids) {
boolean inSet;

toFolder = getMailbox(mailboxName, session, true);
} catch (FolderException e) {
e.setResponseCode("TRYCREATE");
throw e;
}
List<Long> copiedUidsOld = new ArrayList<>();
List<Long> copiedUidsNew = new ArrayList<>();
long[] uids = currentMailbox.getMessageUids();
for (long uid : uids) {
boolean inSet;
