}
});
}
} else if (event instanceof ExpungedImpl) {
ExpungedImpl expunged = (ExpungedImpl) event;
final Mailbox<Id> mailbox = expunged.getMailbox();
List<Long> uids = expunged.getUids();
List<MessageRange> ranges = MessageRange.toRanges(uids);
for (int i = 0; i < ranges.size(); i++) {
MessageRange range = ranges.get(i);
try {
delete(session, mailbox, range);