Distinguish between autoforwarded and forwarded emails

Arikkan
Arikkan used Ask the Experts™
on
I want to distinguish between auto forwarded emails from someone (Auto forward rule) and manually forwarded emails from that person (Forwarded by pressing forward button manually). I don't want to look at the email content for this information.
Maybe I find this information in the email header.

Any ideas on how to do this using code?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Professor JMicrosoft Excel Expert
Top Expert 2014

Commented:
for auto forwarded emails when you view the email. Just above the "From" section but just below the ribbon, it says something like: "This message was AutoForwarded."

Author

Commented:
I just auto forwarded an email from my Gmail account to Company account.
In outlook, the email does NOT say "This message was AutoForwarded."

Any ideas?
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
ALL my regular mail is Auto Forwarded to me. The mail just says (in Properties) came from where is was forwarded.

I do not think you can tell. Nothing really different between my forwarded mail and non forwarded mail.
Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

Author

Commented:
There should be a standard way to do this. I know that it is possible, but I am not getting the solution.
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
I have had emails daily forwarded to me for years and there is no distinction.

Please say why and give us a reference why you know it is possible.
Commented:
I found the solution. We have to use the Header Item "X-Forwarded-For" to identify the AutoForwarded Email.
JohnBusiness Consultant (Owner)
Most Valuable Expert 2012
Expert of the Year 2018

Commented:
That's helpful. You have to build special emails. None of my forwarded emails have an X-Forwarded-For header. So it is only your special emails that will work.

Author

Commented:
This works

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial