Gmail advanced search with has:attachment syntax

Any idea why when I sometimes search within my gmail account (via a browser), and I include the syntax "has:attachment", I still get search results which do not have attachments.  Sometimes it returns only emails with attachments but other times it returns results which have no attachments.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Gerwin Jansen, EE MVETopic Advisor Commented:
Check those messages that have 'no attachment', do they have pictures in the message? That is where I'm getting hits on has;attachment as well.
u587162Author Commented:
I have checked and not all of them have images that I can see.  not sure if they are invisible ones, you know those tiny gif signatures etc.
Gerwin Jansen, EE MVETopic Advisor Commented:
I opened one that had no attachment but a picture in it. Right-click and I could save as if it were an attachment. Apparently detected by Gmail as attachment.
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

u587162Author Commented:
ok how would I run the search to find attachment but exclude images?
Gerwin Jansen, EE MVETopic Advisor Commented:
Adding a size is working for me:

has:attachment larger:500k
u587162Author Commented:
Problem with that is that you will miss out on the essential attachments you are trying to search i.e. Word or Excel docs which might be below that size limit.
Gerwin Jansen, EE MVETopic Advisor Commented:
Yes however, Word or Excel typically will show as an attachment. Just a flaw in the has:attachments I'm afraid.
u587162Author Commented:
Sorry for the delay in replying.  Is there a syntax to then exclude certain file attachments from the search?
Gerwin Jansen, EE MVETopic Advisor Commented:
The Advanced Search syntax is documented here:

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
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
Query Syntax

From novice to tech pro — start learning today.