Hack Attack: Build advanced Gmail filters and persistent sear...
Popularity Report
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
URL Tag Cloud
Bookmark History
Public Sticky notes
Highlighted by mikecsees
Highlighted by hielo777
to:adam subject:iPhone is both to me and has iPhone somewhere in the subject. The Gmail documentation recommends using the OR operator when only one term needs to match. Our search might then become to:adam OR subject:iPhone, meaning that every match is either addressed to me, has iPhone in the subject, or both.
Highlighted by wisely
{to:adam subject:iPhone} will yield the same results as the OR search above while allowing you more room for tweaking the terms and saving you from typing an endless string of ORs. Everything inside the curly brackets is assumed to be linked with OR.
Highlighted by wisely
Highlighted by wisely
Highlighted by wisely
Highlighted by wisely
Highlighted by wisely
Filters come in handy when you want to perform certain actions on email when it arrives—actions like archiving, forwarding, and labeling.* If you're planning to set up complex filters, the first thing you should do is expand Gmail's filter input,** turning it from a one-line input box to a textarea. That way you can
Highlighted by wisely
Highlighted by wisely
-from:{
*@lifehacker.com
*@gawker.com
*@gizmodo.com
*@defamer.com
*@wonkette.com
*@idolator.com
*@fleshbot.com
*@kotaku.com
*@deadspin.com
*@gridskipper.com
*@consumerist.com
*@valleywag.com
*@jezebel.com
}
As you can see, this query uses the hyphen -, which negates the content of the following curly bracketed section. In my example, any email that does not match one of these handles (i.e., any email not sent from A or B or C...) gets archived and labeled "Lifehacker Tips." If I decide a contact has earned inbox status, I can just add their email to the end of the list (luckily Gmail doesn't remove the line breaks so the query retains its friendly format when I need to edit it).
Highlighted by wisely


Public Comment