Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to filter messages that do NOT have attachments using GMail query language?

How do I filter out Gmail messages that DO NOT have attachments?

Here is the documentation I'm trying to follow.

I can see that in order to include messages with attachments, I use the following query:

has:attachment

However, I do not see a way to do the inverse. I seek something like:

!has:attachment

What am I missing?

like image 437
Let Me Tink About It Avatar asked Mar 03 '23 03:03

Let Me Tink About It


1 Answers

Summary from comments

Both of the following work:

!has:attachment

and

-has:attachment
like image 142
Let Me Tink About It Avatar answered Apr 20 '23 00:04

Let Me Tink About It