final MailboxSession session = event.getSession();
try {
if (event instanceof MessageEvent) {
if (event instanceof AddedImpl) {
AddedImpl added = (AddedImpl) event;
final Mailbox<Id> mailbox = added.getMailbox();
Iterator<Long> uids = added.getUids().iterator();
while (uids.hasNext()) {
long next = uids.next();
Iterator<Message<Id>> messages = factory.getMessageMapper(session).findInMailbox(mailbox, MessageRange.one(next), FetchType.Full, -1);
while(messages.hasNext()) {