} catch (MailboxException e) {
session.getLog().debug("Unable to deleted range " + range.toString() + " from index for mailbox " + mailbox, e);
}
}
} else if (event instanceof FlagsUpdatedImpl) {
FlagsUpdatedImpl flagsUpdated = (FlagsUpdatedImpl) event;
final Mailbox<Id> mailbox = flagsUpdated.getMailbox();
Iterator<UpdatedFlags> flags = flagsUpdated.getUpdatedFlags().iterator();
while(flags.hasNext()) {
UpdatedFlags uFlags = flags.next();
try {
update(session, mailbox, MessageRange.one(uFlags.getUid()), uFlags.getNewFlags());
} catch (MailboxException e) {