Map<Long, MessageMetaData> uids = new HashMap<Long, MessageMetaData>();
uids.put(data.getUid(), data);
dispatcher.added(mailboxSession, uids, getMailboxEntity());
return data.getUid();
} catch (IOException e) {
throw new MailboxException("Unable to parse message", e);
} catch (MimeException e) {
throw new MailboxException("Unable to parse message", e);
} catch (MailboxException e) {
throw new MailboxException("Unable to parse message", e);
} finally {
IOUtils.closeQuietly(bIn);
IOUtils.closeQuietly(tmpMsgIn);
IOUtils.closeQuietly(out);
IOUtils.closeQuietly(contentIn);