if ( store.getChildren( toDelete ).isEmpty() ) {
long[] uids = toDelete.getMessageUids();
for ( int i = 0; i < uids.length; i++ ) {
long uid = uids[i];
SimpleImapMessage imapMessage = toDelete.getMessage( uid );
toDelete.deleteMessage( imapMessage.getUid() );
}
store.deleteMailbox( toDelete );
}
else {
if ( toDelete.isSelectable() ) {