Is there any way to detect (using RFC 2822 headers) that an email is a forwarded email?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are two things that are normally referred to as "forwarding".
When you set up automatic account-level forwarding to another email address, your mail system will usually introduce an extra header to enable it to detect and break mail loops. Unfortunately, the name of this header has never been standardized. Some use
Delivered-To, some useX-Loop, some useX-Original-To, some use an X-header proprietary to their mail software. But there’s no single header field that’s present all cases.When you manually forward a message by clicking the "Forward" button in your mailer and entering a recipient email address and some descriptive text, a new message with a new
Message-IDheader is generated. The set of headers on this message will be indistinguishable from a normal reply —In-Reply-ToandReferencesare set in exactly the same way. The only difference is that theSubjectheader will usually start with "Fwd:" or end with "(fwd)". ("Usually" because some clients format it as "[Fwd: <original subject>]" with square brackets around the new subject, some clients localize the prefixFwd:into their own language, and some users manually edit theSubjectbefore hitting "send".)So there are good hints that a message is forwarded, but no hard and fast rules.