Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using OpenPop.dll to read emails in my application. I want to read only the reply of the email not original email which it was replied to. But email is read with previous emails in quotes. I want to remove those previous mail contents.

I tried using RegEx for this but that is not very robust way to read replies because different email clients have different reply format.

Is there any way by which I can read only the reply text from mail thread in OpenPop.dll or some other open source library.

Below is how the reply email text looks like when read from OpenPop.dll.

HTML
My phone number is 123456789.

On Fri, May 8, 2015 at 2:57 PM, <noreply.mailer@gmail.com> wrote:

>  Hi,
>
> This mail is regarding your *Phone*. Please reply to this email with your
> *Phone*.
>
> Thanks
>


This format is such that because it was replied from Gmail. Outlook has different format and so does yahoo.

I want to read only
HTML
My phone number is 123456789.


Any solution is welcome.
Posted
Comments
Sinisa Hajnal 8-May-15 7:48am    
Create "cleaner" class that will analyze the source of the reply and clean depending on the type.

Since the original message is not attached but actually part of the message, you cannot remove it without parsing...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900