FileInputStream fis = null;
try {
fis = new FileInputStream(cache.dir.getParent() + slash + name);
- return new Message(new Stream(fis), new Message.Envelope(null, null, new Date()));
+ return Message.newMessage(new Stream(fis));
} finally { if (fis != null) fis.close(); }
} catch (IOException e) { throw new MailException.IOException(e);
} catch (Message.Malformed e) { throw new MailException(e.getMessage()); }