Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The web version of Gmail sometimes tells me a message wasn't sent to spam because of my filter settings:

I later realized I probably don't need this image, but since I xwd'd it, I'm going to use gosh darn it!

However, after I download that message via IMAP and look at the headers, I see no such indication ("show original" also shows no such indication).

Is this information lost if I don't view the message on the web?

Can I make gmail add a "X-GMAIL-FILTERED: Spam to Inbox" or something header?

share|improve this question
What do you mean the by the downloaded version of Gmail? Do you mean Thunderbird or something? – ComputerLocus Mar 31 '13 at 17:58
up vote 1 down vote accepted

This is a GMail web feature and would not be included in the normal HTML of an email. The information is not really lost, but more a less not an included feature of using IMAP or POP access.

share|improve this answer
Thanks, this is what I thought. If I delete the message permanently from the web interface, the information really is lost? Since my only copy (the IMAP copy) won't have it? – barrycarter Mar 31 '13 at 21:00
If you downloaded the message on a client it will stay there. – ComputerLocus Apr 1 '13 at 1:59
Right, but the fact that gmail originally labelled it spam and then moved it to inbox due to a filter is lost forever (unless gmail has filter logs, which I don't think it does) – barrycarter Apr 1 '13 at 3:58
Well you could choose an option to also apply a label or something to the messages you chose to never send to spam. Then you could identify messages that were suppose to go to spam. But no, if you're using some client, you will never know otherwise. – ComputerLocus Apr 1 '13 at 4:15
OK, I tried this. The label shows up in webmail, but not in the IMAP-downloaded version of the email. I was hoping for an "X-Label:" header, but no such luck. – barrycarter Apr 1 '13 at 4:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.