receive custom header variables using javamail

Hi,

I am setting some custom variable in header like "ABC" and the value as "123" and sending it to some invalid recipient. The mail is bounced back to the sender. By using my outlook client I am able to see the above variable.

I have written a java program to read the headers, but it is not coming. Kindly help me to receive custom headers. If you have any code sample that would be helpful.

Thanks,

Srinivas

Message was edited by:

gsrmail@yahoo.com

[496 byte] By [gsrmail@yahoo.coma] at [2007-11-27 6:46:49]
# 1
Have you looked at the com.sun.mail.dsn package in JavaMail 1.4?
bshannona at 2007-7-12 18:19:14 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...