* Negating searches in notmuch running via emacs?
@ 2015-01-05 21:46 David Creelman
2015-01-07 2:48 ` Austin Clements
0 siblings, 1 reply; 2+ messages in thread
From: David Creelman @ 2015-01-05 21:46 UTC (permalink / raw)
To: notmuch
Hi Carl (et al),
Thanks for notmuch. It's making my email setup a bit more efficient. I used to be a filter to differnt
mbox kind of person, but I'm a changed man now !!
Just wondered, is it possible to negate a search in notmuch for emacs?
I have a bunch of stuff that is in my inbox that I don't want to see and have tried doing things like
-googlealerts-noreply
-from:googlealerts-noreply
But it looks like the '-' is ignored....
Is there a way of getting filtering? It looks like it's possible from the command line application (with -
and + on search terms).
Regards,
David
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Negating searches in notmuch running via emacs?
2015-01-05 21:46 Negating searches in notmuch running via emacs? David Creelman
@ 2015-01-07 2:48 ` Austin Clements
0 siblings, 0 replies; 2+ messages in thread
From: Austin Clements @ 2015-01-07 2:48 UTC (permalink / raw)
To: David Creelman; +Cc: notmuch
Hi David.
In general, "-" will negate a query term. However, Xapian's query
syntax (to which notmuch is beholden) ignores "-" at the beginning of
a query (and immediately after an open paren). Hence, if you want to
negate the first term in a query, you'll have to use "not" instead.
Hope that helps.
Quoth David Creelman on Jan 06 at 8:46 am:
> Hi Carl (et al),
> Thanks for notmuch. It's making my email setup a bit more efficient. I used to be a filter to differnt
> mbox kind of person, but I'm a changed man now !!
>
> Just wondered, is it possible to negate a search in notmuch for emacs?
>
> I have a bunch of stuff that is in my inbox that I don't want to see and have tried doing things like
>
> -googlealerts-noreply
> -from:googlealerts-noreply
>
> But it looks like the '-' is ignored....
>
> Is there a way of getting filtering? It looks like it's possible from the command line application (with -
> and + on search terms).
>
> Regards,
> David
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-07 2:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-05 21:46 Negating searches in notmuch running via emacs? David Creelman
2015-01-07 2:48 ` Austin Clements
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).