*/
public Reader extractText(InputStream stream,
String type,
String encoding) throws IOException {
try {
MAPIMessage message = new MAPIMessage(stream);
StringBuffer buffer = new StringBuffer();
buffer.append(message.getDisplayFrom()).append('\n');
buffer.append(message.getDisplayTo()).append('\n');
buffer.append(message.getSubject()).append('\n');
buffer.append(message.getTextBody());
return new StringReader(buffer.toString());
} catch (Exception e) {
logger.warn("Failed to extract Message content", e);
return new StringReader("");
} finally {