emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Concern about new binding.


From: Jean Louis
Subject: Re: Concern about new binding.
Date: Fri, 12 Feb 2021 12:29:57 +0300
User-agent: Mutt/2.0 (3d08634) (2020-11-07)

* Richard Stallman <rms@gnu.org> [2021-02-07 08:34]:
> [[[ To any NSA and FBI agents reading my email: please consider    ]]]
> [[[ whether defending the US Constitution against all enemies,     ]]]
> [[[ foreign or domestic, requires you to follow Snowden's example. ]]]
> 
>   > You can do whatever you want.  For example, I have an elisp function to
>   > mute (== any new messages to the thread are marked as read immediately)
>   > all unread threads I haven't touched, but avoid muting threads where I
>   > read messages, so I'll see new messages that later come into those
>   > threads.  That's just one example; if you're willing to write the elisp
>   > you can probably make it happen.
> 
> How would I direct notmuch to recognize all messages which were sent
> to bug-gnu-emacs but not emacs-devel, and propose a change in the
> Emacs user interface?  The second criterion seems to require
> humanlike understanding, not text processing.

References:
https://notmuchmail.org/searching/

Operators

Xapian implements the usual operators and a few more that are useful when 
searching e-mails.

Note: The operators need not be capitalized for notmuch, so 'NOT' and 'not' are 
equivalent. The capitalized form is used below only for readability
'+' and '-'

    notmuch search +term1

will only return results that contain 'term1'.

    notmuch search -term2

will return results that do not contain 'term2'. '+' and '-' can also be used 
on bracketed expressions or phrases (see below).
AND and NOT

notmuch search term1 AND term2

will return results that contain both 'term1' and 'term2'.

If no explicit operator is provided all search terms are connected by an 
implicit AND, so these two searches:

    notmuch search term1 AND term2
    notmuch search term1 term2

are equivalent.

    notmuch search term1 NOT term2

will return results that contain 'term1' but do not contain 'term2'. For a 
query that looks more like natural language you can also use AND NOT

    notmuch search term1 AND NOT term2



reply via email to

[Prev in Thread] Current Thread [Next in Thread]