File target = new File(today.getPath() + File.separatorChar + time + ".txt");
OutputStream os = new FileOutputStream(target);
try {
- message.dump(new Stream(os));
+ message.getStream().transcribe(new Stream(os));
os.flush();
} finally { os.close(); }
} catch (IOException e) { throw new MailException.IOException(e); }