Gnus development mailing list
 help / color / mirror / Atom feed
From: dme@dme.org
Subject: IMAP searching - any thoughts ?
Date: 15 Jun 2000 10:22:37 +0100	[thread overview]
Message-ID: <m3zoon5mea.fsf@serafina-pekkala.dme.org> (raw)

I often want to search through one (or more) IMAP folder(s) for
something.  At the moment that's laborious, as nnir.el doesn't work
for IMAP and entering the folder and then figuring out how to search
is a pain.

Has anyone thought about something like the nnweb.el searching tools
for IMAP servers ?

I've had a look, and I'm out of my elisp/gnus depth.  Experimentation
so far has led to the following:

(defun dme-imap-search (s)
  "a very shoddy way to use imap searching in Gnus.  point must be on the
INBOX line in the group list buffer.  sorry."
  (interactive "ssearch string: ")
  (let* ((b (imap-open "localhost"))
	(d (imap-authenticate "dme" "a strange tale indeed" b))
	(d (imap-mailbox-select "INBOX" nil b))
	(msgs (imap-search s b))
	(imap-close b))
    (gnus-group-read-group nil nil nil msgs)
  )
)

which has already proved very useful, but it is obviously awful.  For
a start, it requires the user to understand the IMAP search primitive
(which is actually okay, as it's quite good).

Any alternatives ?

dme.



             reply	other threads:[~2000-06-15  9:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-06-15  9:22 dme [this message]
2000-06-15 11:22 ` Kai Großjohann
2000-06-15 11:49   ` dme
2000-06-15 12:48     ` Kai Großjohann
2000-06-15 13:10       ` dme

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=m3zoon5mea.fsf@serafina-pekkala.dme.org \
    --to=dme@dme.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).