mail.setAttribute(JAMES_BLOB_URL, blobMessage.getURL());
} catch (MalformedURLException e) {
// Ignore on error
logger.debug("Unable to get url from blobmessage for mail " + mail.getName());
}
mail.setMessage(new MimeMessageCopyOnWriteProxy(new MimeMessageInputStreamSource(mail.getName(), blobMessage.getInputStream())));
} catch (IOException e) {
throw new MailQueueException("Unable to populate MimeMessage for mail " + mail.getName(), e);
} catch (JMSException e) {
throw new MailQueueException("Unable to populate MimeMessage for mail " + mail.getName(), e);