How to test that mail item is of type "failure delivery report" & how to get its content

I am making replica of notes client app.I am able to fetch all mails of my inbox & i can open them in word document with same content as is shown by notes client app.

But how to judge that the mail item is delivery failure report mail & how to fetch its content .Please suggest

Subject: How to test that mail item is of type “failure delivery report” & how to get its content

if you get back a delivery failure report from Domino it will arrive as a different form type “NonDelivery Report”. So you can either check for the form name or you could check for the field “FailureReason”. As far as getting the content, what exactly do you want to get?

Subject: RE: How to test that mail item is of type “failure delivery report” & how to get its content

How to check mails type ie what call is required to fetch same.Also how to get Failure Reason.

Subject: How to test that mail item is of type “failure delivery report” & how to get its content:HIGH PRIORITY

Problem is how to get mail contents: "Mail contents means if you double click on mail,mail gets opened,the data that is there in mail(mail ie opened),i want to fetch that.

Right now i am getting this for normal mails(ie they are delivered successfully)by following steps

NotesRichtextItemObject.Values – this gives me the “body” of mail ie in which we write data or attachments etc.

Now how to get body info in case of delivery failure mail