Gnus development mailing list
 help / color / mirror / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
To: Daniel Pittman <daniel@rimspace.net>
Cc: ding@gnus.org
Subject: Re: NNIR, IMAP SEARCH, and the infinite pain of search terms.
Date: Sun, 13 Apr 2008 16:05:12 +0200	[thread overview]
Message-ID: <v9iqyln947.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <87r6hu3hml.fsf@enki.rimspace.net> (Daniel Pittman's message of "Mon, 10 Dec 2007 22:37:38 +1100")

On Mon, Dec 10 2007, Daniel Pittman wrote:

> Gnus contains, in contrib/, the nnir.el interface to search engines.
> This is a nice tool and, pleasantly, supports IMAP SEARCH to give me
> efficient searching of my IMAP mail ... or so I thought.
>
> The biggest problem I had was that it would never seem to find the mail
> I expected, so I didn't use it much.  
>
> After inspecting the code the reason became clear: the search was a
> single "exact substring" match performed, not the logical sort of search
> that I have come to expect with Google and other search engines.
>
> So...  the IMAP SEARCH command doesn't do any clever parsing or
> anything; the front end software has to do that.  
>
> Attached is my first "draft" of a more complex search front-end for NNIR
> and IMAP SEARCH -- it parses the query, translates that into a suitable
> IMAP SEARCH command and returns the results.
>
> This is *much* less surprising to me: it returns what I expect, most of
> the time, and takes the sort of input I would expect as well.
>
> At the moment it only handles basic searching, as documented in the
> `nnir-imap-make-query' function in the patch.
>
> I plan to extend this to support the full range of operators that IMAP
> SEARCH supports, but wanted to seek feedback on the initial
> implementation first.
>
> I have signed papers assigning Gnus changes already, so there should be
> no legal reason that this is rejected.

Installed.  Thanks for your contribution.  Sorry for the delay.

Could you please suggest an improved variant of my minimal ChangeLog
entry?

	* nnir.el (nnir-run-imap): Add doc string.  Use `nnir-imap-make-query'.
	(nnir-imap-make-query, nnir-imap-query-to-imap)
	(nnir-imap-expr-to-imap, nnir-imap-parse-query, nnir-imap-next-expr)
	(nnir-imap-peek-symbol, nnir-imap-next-symbol)
	(nnir-imap-delimited-string, nnir-imap-end-of-input): New functions.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



  parent reply	other threads:[~2008-04-13 14:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-10 11:37 Daniel Pittman
2007-12-11 10:39 ` Vegard Vesterheim
2008-04-13 14:05 ` Reiner Steib [this message]
2008-04-14 11:54   ` Daniel Pittman

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=v9iqyln947.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=daniel@rimspace.net \
    --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).