From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/31424 Path: main.gmane.org!not-for-mail From: dme@dme.org Newsgroups: gmane.emacs.gnus.general Subject: IMAP searching - any thoughts ? Date: 15 Jun 2000 10:22:37 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035167835 13947 80.91.224.250 (21 Oct 2002 02:37:15 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 02:37:15 +0000 (UTC) Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by mailhost.sclp.com (Postfix) with ESMTP id D4A4CD051F for ; Thu, 15 Jun 2000 05:25:50 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id EAC28057; Thu, 15 Jun 2000 04:25:39 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 15 Jun 2000 04:24:54 -0500 (CDT) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id EAA29669 for ; Thu, 15 Jun 2000 04:24:43 -0500 (CDT) Original-Received: from mail.dme.org (something.dme.org [212.240.232.120]) by mailhost.sclp.com (Postfix) with ESMTP id 885B3D051F for ; Thu, 15 Jun 2000 05:25:09 -0400 (EDT) Original-Received: (from daemon@localhost) by mail.dme.org (8.8.5/8.8.5) id KAA29612 for ; Thu, 15 Jun 2000 10:22:49 +0100 (BST) Original-Received: from serafina-pekkala.dme.org(10.0.0.6) via SMTP by mail.dme.org, id smtpd029610; Thu Jun 15 09:22:40 2000 Original-Received: (from dme@localhost) by serafina-pekkala.dme.org (8.9.3/8.9.3) id KAA04713; Thu, 15 Jun 2000 10:22:40 +0100 Original-To: ding@gnus.org Original-Lines: 31 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Acadia) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:31424 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:31424 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.