\n");
message.visitBodies(new BodyVisitor() {
@Override
public void visitTextBody(TextBody textBody) {
try {
sb.append(
" \n")
.append(textBody.getAdaptedText()).append("\n"
+ "
\n");
}
catch(IOException ex) {
log.error(ex);
}
}
});
sb.append("\n");
return controlCharactersPattern.matcher(sb.toString()).replaceAll("");
}
}