Distinguish between autoforwarded and forwarded emails

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?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Professor JMicrosoft Excel ExpertCommented:
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."
ArikkanAuthor 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)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.
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

ArikkanAuthor 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)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.
ArikkanAuthor Commented:
I found the solution. We have to use the Header Item "X-Forwarded-For" to identify the AutoForwarded Email.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
JohnBusiness Consultant (Owner)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.
ArikkanAuthor Commented:
This works
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Email Clients

From novice to tech pro — start learning today.