From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/6385 Path: news.gmane.org!not-for-mail From: Angelina Carlton Newsgroups: gmane.emacs.gnus.user Subject: using swish-e to search gnus mail archives Date: Wed, 28 Dec 2005 10:24:34 -0500 Message-ID: <87oe31w8gd.fsf@magma.ca> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1138671908 31327 80.91.229.2 (31 Jan 2006 01:45:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Jan 2006 01:45:08 +0000 (UTC) Original-X-From: nobody Tue Jan 17 17:36:44 2006 Original-Path: quimby.gnus.org!newsfeed.gazeta.pl!fu-berlin.de!newscon06.news.prodigy.com!prodigy.net!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.magma.ca!news.magma.ca.POSTED!not-for-mail Original-NNTP-Posting-Date: Wed, 28 Dec 2005 09:24:37 -0600 Original-Newsgroups: gnu.emacs.gnus User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:D8uP81vjd09NjS9RP9/CPgkDmw8= Original-NNTP-Posting-Host: 64.26.147.46 Original-X-Trace: sv3-BVxt7JgrO8eIitt07R/j4/tOsw/ZtGj8d5DX8mrEle735Xyt49pIErTYBXA/SmkW5FlKarBBen5fjwM!L39BvCGeZYYh2FCe2drxnedGiCMhtzEF9LyyKdABD/3fimjVI+Af4+mgAHF0nx9y Original-X-Complaints-To: abuse@magma.ca X-DMCA-Complaints-To: abuse@magma.ca X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: bridgekeeper.physik.uni-ulm.de gnus-emacs-gnus:6527 Original-Lines: 84 X-Gnus-Article-Number: 6527 Tue Jan 17 17:36:44 2006 Xref: news.gmane.org gmane.emacs.gnus.user:6385 Archived-At: 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 --------------------------