in mail-archive/server/src/main/java/org/apache/sling/mailarchiveserver/impl/ImportMboxServlet.java [54:67]
protected void doPost(SlingHttpServletRequest request, SlingHttpServletResponse response)
throws ServletException, IOException {
RequestParameter param = request.getRequestParameter(IMPORT_FILE_ATTRIB_NAME);
if (param != null) {
logger.info("Processing attachment: " + param.toString());
InputStream mboxIS = param.getInputStream();
store.saveAll(parser.parse(mboxIS));
response.sendRedirect(MailArchiveServerConstants.ARCHIVE_PATH + ".html");
} else {
logger.info("No attachment to process.");
}
}