----- Original Message ----- From: "Samuel Arnod-Prin" <[EMAIL PROTECTED]> > > I would like to copy all mails from our customer to a forum in the nntp > server.
Utility described here may help http://marc.theaimsgroup.com/?l=james-dev&m=105095131916737&w=2 It reads and posts mail messages to newsgroup server. or chapter 6 from Stephan Wiesner's excellent James Tutorial if you want a mailet that posts mail to Newsgroup at runtime. http://rzserv2.fhnon.de/~lg002556/james/James.html#chap_NewsServer > The rule would be the following : > if a mail is for or from an email like [EMAIL PROTECTED] then I would like > this mail to be moved into the com.customer.inbox forum... You'll need to iterate over existing mails, do subject check and post to newsgroup. Subject could be found by creating mime message using and MimeMessage::getSubject API or by parsing mail headers to look for 'Subject' header. Latter is a bit messier but may be faster. Harmeet --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
