I need to check whether mail is bounced mail or not.
There one library available which can do this. http://sourceforge.net/projects/bmh/
But my problem if as below:
The email gets bounced to a mailbox, so you can't detect that it has bounced without reading that mailbox. You might be able to read your mail software's data files directly, but there is no guarantee your mail software won't change how it stores your files.