I am using James to handle the bounced emails from Groupwise clients. I have set up a
forward to rule in Groupwise so any bounced email from Groupwise will be forwarded to
the James server.
I have a separate process to periodically look at the inbox of the James server and
forward the email to some forward to address.
I am getting an array of javax.mail.Message and I'm looping thru each Message to do my
forwarding. Here is the snippet of code to check the content.
///////
Object content = msg.getContent();
if (content instanceof Multipart) {
log.debug("IT IS A MUTIPART");content);
} else {
log.debug("IT IS NOT A MUTIPART");
}
///////////////
But all the messages of type Single part. Even the bounced mails with attachments.
I need to forward the bounced mail as an attachment to the forward to address.
Thanks for your help
Alagan
-----------------------------------------
Email messages cannot be guaranteed to be secure or error-free as transmitted
information can be intercepted, corrupted, lost, destroyed, arrive late or incomplete,
or contain viruses. The Centers for Medicare and Medicaid Services therefore does not
accept liability for any error or omissions in the contents of this message which
arise as a result of email transmission.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]