S22.Imap icon indicating copy to clipboard operation
S22.Imap copied to clipboard

Forwarded HTML Message (Outlook)

Open radu103 opened this issue 12 years ago • 7 comments

forwarded_email_with_contact_info

When e message is forwarded from outlook and the FROM is present in Contacts then in the S22.Imap Body, only the name is fetched. (the original mail address is on a href="mailto: [email protected]" htmal in the RAW message.

There are 2 ways of solving this :

  • access to the RAW BODY TEXT (in the MailMessage class)
  • taking in original headers the X-Forwarded-For (the original mail)
  • in the Body of the Mail Message to fetch also the mailto: address not only the name.

I will attach and example raw Body from outlook

thanks

radu103 avatar Feb 05 '14 10:02 radu103

forwarded_email_with_contact_info2

radu103 avatar Feb 05 '14 10:02 radu103

Thank you, I will take a look at it when I get a chance.

smiley22 avatar Feb 06 '14 11:02 smiley22

Do you mind if I solve the problem and send you the file for update?

Sent from my HTC

----- Reply message ----- From: "Torben Könke" [email protected] To: "smiley22/S22.Imap" [email protected] Cc: "radu103" [email protected] Subject: [S22.Imap] Forwarded HTML Message (Outlook) (#76) Date: Thu, Feb 6, 2014 13:49 Thank you, I will take a look at it when I get a chance.

— Reply to this email directly or view it on GitHub.

radu103 avatar Feb 06 '14 14:02 radu103

Yes sure, you can do that.

smiley22 avatar Feb 06 '14 20:02 smiley22

The patched file attached. If forwarded message the it is multiparted and mime part type Unknown but has value (it was cheched only by name) So if it has a multipart unknown with a value it will be put in Body after new line, just like in Outlook

Pls check and release if you consider a good solution.

Date: Thu, 6 Feb 2014 12:58:12 -0800 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [S22.Imap] Forwarded HTML Message (Outlook) (#76)

Yes sure, you can do that.

— Reply to this email directly or view it on GitHub.

radu103 avatar Feb 07 '14 16:02 radu103

Or the second solution attached now :

  • add to attachments the original message that was forwarded (has value and mime part type Unknown)

I think this is better for compatibility...

From: [email protected] To: [email protected] Subject: RE: [S22.Imap] Forwarded HTML Message (Outlook) (#76) Date: Fri, 7 Feb 2014 16:45:46 +0000

The patched file attached. If forwarded message the it is multiparted and mime part type Unknown but has value (it was cheched only by name) So if it has a multipart unknown with a value it will be put in Body after new line, just like in Outlook

Pls check and release if you consider a good solution.

Date: Thu, 6 Feb 2014 12:58:12 -0800 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [S22.Imap] Forwarded HTML Message (Outlook) (#76)

Yes sure, you can do that.

— Reply to this email directly or view it on GitHub.

radu103 avatar Feb 07 '14 16:02 radu103

hacker12691 avatar Oct 08 '20 14:10 hacker12691