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.
LVL 1
u587162Asked:
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.

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.
0
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.
0
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.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

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

has:attachment larger:500k
1
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.
0
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.
0
u587162Author Commented:
Sorry for the delay in replying.  Is there a syntax to then exclude certain file attachments from the search?
0
Gerwin Jansen, EE MVETopic Advisor Commented:
The Advanced Search syntax is documented here:
https://support.google.com/mail/answer/7190?hl=en
0

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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.