@Vincent : Well, I use javamail APIs to parse, in fact I extract the fields (getHeader('headername')), do some computations (dates, body parts aggregation ...) and store the result in a MailItem object of my own. Then I create the new page (or update) and object from the MailItem information. If I move that part to a Java component, and provide a script service to call it (and to retrieve the MailItem fields) from Velocity, how would I be able to pass a mail as parameter from Velocity ? For now the method is something like : MailItem parseMail(javax.mail.Message mail) But maybe it would be some kind of "internal" component, not supposed to be accessed from wiki pages directly ? (so no script service for this part) -- View this message in context: http://xwiki.475771.n2.nabble.com/GSoc-Advanced-Email-Integration-tp7384822p... Sent from the XWiki- Dev mailing list archive at Nabble.com.