Do you see the difference between the two images?
In the first mail i got to the mail by clicking on the “spam” link on the left menu. This is in fact same as using “in:spam” in the search. Since the mail is a spam, the button on top is “Not spam”. Which is the correct and expected behavior, as you are inside spam, you would want to unspam certain mails which have been wrongly labeled.
In the second image i got to the mail by first clicking the “spam” link and then refining the search with keywords. This gives me a search result page. And though the search also has “in:spam” the button on top still shows “Report spam”. So if I get to a wrongly labeled message through a keyword search I can’t unspam it.
Am i missing something over here? or is this a bug?
I guess they have different templates for the spam page and the search result page. And they haven’t put the condition that if the search has “in:spam” it should show the relevant option or the relevant template.