Gnus development mailing list
 help / color / mirror / Atom feed
From: Andrew Cohen <cohen@andy.bu.edu>
To: ding@gnus.org
Subject: Re: nnir r00lz!
Date: Sat, 27 Nov 2010 13:53:40 -0500	[thread overview]
Message-ID: <8739qmtx6z.fsf@andy.bu.edu> (raw)
In-Reply-To: <m2d3pqk3wb.fsf@verilab.com>

>>>>> "Tommy" == Tommy Kelly <tommy.kelly@verilab.com> writes:

    Tommy> Steinar Bang <sb@dod.no> writes about nnir:
    >> Move point over an nnimap folder (not sure if all IMAP servers
    >> implement search, but I know for sure that dovecot does)

    Tommy> Gmail seems to support it too.

    Tommy> Do you know if there is any kind of sophistication available
    Tommy> in the query? For example, can you search just on a given
    Tommy> header, or build complex booleans?

Yes to all. Not much documentation (yet) but there is some info in the
file nnir.el.

Basically:

"G G" prompts for a query string. The string conforms to a simple search
language:

Automatic \"and\" queries
    If you specify multiple words then they will be treated as an \"and\"
    expression intended to match all components.

Phrase searches
    If you wrap your query in double-quotes then it will be treated as a
    literal string.

Negative terms
    If you precede a term with \"-\" then it will negate that.

\"OR\" queries
    If you include an upper-case \"OR\" in your search it will cause the
    term before it and the term after it to be treated as alternatives.


If you call "G G" with a prefix arg it will prompt for a query string
and then ask what part of messages to search. The options are:

"Whole message"
"Subject"
"To"
"From"

If you type anything else, it will be interpreted as the name of a
HEADER to search (e.g. if you type "Message-ID" it will search for your
query-string in the Message-ID header).

Finally if you select "Imap" it will interpret your query as a raw imap
query (consult the RFC for the format of Imap queries). 

Regards,
Andy




  reply	other threads:[~2010-11-27 18:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-27 10:40 Steinar Bang
2010-11-27 16:58 ` Lars Magne Ingebrigtsen
2010-11-27 18:39 ` Tommy Kelly
2010-11-27 18:53   ` Andrew Cohen [this message]
2010-11-27 19:28     ` Tommy Kelly
2010-11-27 19:39       ` Andrew Cohen
2010-11-27 19:47       ` Dave Goldberg
2010-11-27 20:02       ` Steinar Bang
2010-11-27 20:25         ` Andrew Cohen
2010-11-27 20:38           ` Tom Rauchenwald
2010-11-28  9:16           ` Sivaram Neelakantan
2010-11-28 13:22             ` Andrew Cohen
2010-11-29 17:56               ` Sivaram Neelakantan
2010-11-29 19:37                 ` Andrew Cohen
2010-11-28  9:21           ` Lars Magne Ingebrigtsen
2010-11-28 13:31             ` Andrew Cohen
2010-11-28 13:36               ` Lars Magne Ingebrigtsen
2010-11-28 14:13                 ` Andrew Cohen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8739qmtx6z.fsf@andy.bu.edu \
    --to=cohen@andy.bu.edu \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).