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:
Each user forwards the email to the other user like this:-

User1 -> User2 -> User3 -> User4

How do I retrieve the origin (User1) from pop3 client in C#



Thanks in advance.
Posted
Updated 28-Jan-14 5:47am
v2
Comments
Richard MacCutchan 28-Jan-14 11:54am    
If you just get someone to forward a few messages to you then you can clearly see the difficulty of finding this information.

1 solution

No, that's not part of the email headers, and thus a reliable mechanism cannot be established.
When you forward a message, the mail client typically adds a "FWD: " or something like that to the subject line (can be localized: "WG"), it may add a human-readable representation of some headers (FROM, TO, DATE, SUBJECT) to the message body. And note: also that may be localised...
 
Share this answer
 
Comments
Apurva Kunkulol 27-Jan-14 9:20am    
Thanks for the information Bernhard. Could you post a sample line of code depicting the same?(i.e which part do you exactly mean by message body)
Matt T Heffron 28-Jan-14 17:43pm    
+5 to counter unknown 1
Apurva Kunkulol 29-Jan-14 2:47am    
If (in Gmail) I check the "Show Original" option, it shows the entire mail text/body that contains the From tag but how to extract it from that?

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