Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Angelina Carlton <brat@magma.ca>
Subject: using swish-e to search gnus mail archives
Date: Wed, 28 Dec 2005 10:24:34 -0500	[thread overview]
Message-ID: <87oe31w8gd.fsf@magma.ca> (raw)

Hello everyone,
I have followed the directions here:
http://my.gnus.org/node/217
to set up swish-e as a way to index and search my mail archives.
The swish-e application, from the command line works perfectly:

,----
| [orchid@lemonjelly:~] $ swish-e -f ~/Mail/index.swish-e -w "Gift
| Certificate"
| # SWISH format: 2.4.3
| # Search words: Gift Certificate
| # Removed stopwords:
| # Number of hits: 7
| # Search time: 0.546 seconds
| # Run time: 0.573 seconds
| 1000 /home/orchid/Mail/inbox/5141 "Gift Certificate" 18391
| 565 /home/orchid/Mail/inbox/3911 "3911" 802738
| 565 /home/orchid/Mail/inbox/2859 "2859" 802738
| 257 /home/orchid/Mail/grrls-only/812 "812" 7799
| 257 /home/orchid/Mail/grrls-only/2565 "2565" 5962
| 199 /home/orchid/Mail/grrls-only/44 "44" 5397
| 199 /home/orchid/Mail/debian-user/8312 "8312" 4001
`----

So now all I needed to do was to get gnus to generate a swish-e buffer,
following the instructions on the site, I included this in my .gnus-el:

,----
| ;; swish-e --------------------------------------------------------------
| ;; apt-get install swish-e
| ;; whet wget ftp://ftp.is.informatik.uni-duisburg.de/pub/src/emacs/nnir.el
| (require 'nnir)
| (setq nnir-mail-backend (nth 0 gnus-secondary-select-methods)
|       nnir-search-engine 'swish-e)
`----

Now from the the summary buffer I press G G and I am asked for a query,
after that I get a beep and in the minibuffer:

Wrong type argument: arrayp, nil

I do get the buffer  *Summary nnir:((query . "Gift Certificate"))* but
alas it is empty.... 

the *Messages* buffer contains:

,----
| Opening nnir server on -ephemeral...done
| Doing swish-e query ((query . Gift Certificate))...
| swish-e args: -f /home/orchid/Mail/index.swish-e -w Gift Certificate
| Loading cl-seq...done
| Massaging swish-e output...done
| Doing swish-e query ((query . Gift Certificate))...
| swish-e args: -f /home/orchid/Mail/index.swish-e -w Gift Certificate
| Massaging swish-e output...done
| Doing swish-e query ((query . Gift Certificate))...
| swish-e args: -f /home/orchid/Mail/index.swish-e -w Gift Certificate
| Massaging swish-e output...done
| Retrieving newsgroup: nnir:((query . "Gift Certificate"))...
| Fetching headers for nnir:((query . "Gift Certificate"))...
| mail-header-set-number: Wrong type argument: arrayp, nil
`----

I don't know what this last function does even with the built-in help it
is unclear to me what I need to do.
,----
| mail-header-set-number is a Lisp macro in `nnheader'.
| (mail-header-set-number HEADER NUMBER)
| 
| Set article number of HEADER to NUMBER.
`----


Please if someone could tell me how to get this working I would be so
happy, I really like the idea of a search buffer inside gnus instead of
command line tools like grepmail or just plain old grep!

Thanks in advance 
-- 
-----Angelina Carlton-----
orchid on irc.freenode.net
     brat@magma.ca
web:bzgirl.bakadigital.com
--------------------------


                 reply	other threads:[~2005-12-28 15:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87oe31w8gd.fsf@magma.ca \
    --to=brat@magma.ca \
    /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).