From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/28415 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Re: [nnir] WIBNI Date: 22 Dec 1999 17:18:36 -0800 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035165267 29775 80.91.224.250 (21 Oct 2002 01:54:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:54:27 +0000 (UTC) Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id 2FDF8D051F for ; Wed, 22 Dec 1999 20:25:40 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id TAB19170; Wed, 22 Dec 1999 19:22:01 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 22 Dec 1999 19:21:03 -0600 (CST) 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 TAA00494 for ; Wed, 22 Dec 1999 19:20:52 -0600 (CST) Original-Received: from mail.networkone.net (mail.networkone.net [209.144.112.75]) by mailhost.sclp.com (Postfix) with SMTP id 49861D051F for ; Wed, 22 Dec 1999 20:19:12 -0500 (EST) Original-Received: (qmail 25467 invoked from network); 23 Dec 1999 01:20:21 -0000 Original-Received: from pm3-6-76.la.networkone.net (HELO satellite.local.lan) (reader@209.144.125.76) by mail.networkone.net with SMTP; 23 Dec 1999 01:20:21 -0000 Original-Received: (from reader@localhost) by satellite.local.lan (8.9.3/8.9.1) id RAA01091; Wed, 22 Dec 1999 17:18:55 -0800 Original-To: ding@gnus.org In-Reply-To: Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "22 Dec 1999 17:47:55 +0100" User-Agent: Gnus/5.070099 (Pterodactyl Gnus v0.99) Emacs/20.4 Original-Lines: 96 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:28415 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:28415 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > Harry Putnam writes: > > > Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > > > > > Well, you can manually change nnir-mail-backend; that's rather easy. > > > But there is no user-interface for this, yet. > > > > > > You could do (setq nnir-mail-backend (nth X > > > gnus-secondary-select-methods)) for various small numbers X if all > > > your servers are secondary, as opposed to foreign. > > > > What are you talking about above? Can you spell it out a bit more? > > If you had both servers in gnus-secondary-select-methods, you could > have said > > M-: (setq nnir-mail-backend (nth 0 gnus-secondary-select-methods)) RET > > to search the first one, and a similar line with 1 instead of 0 to > search the second one. > > > However the server in question is listed in server buffer, an `e' > > shows: > > > > (nnml "n2m" > > (nnml-directory "/mnt/pack/n2m/") > > (nnml-active-file "/mnt/pack/n2m/active")) > > > > If I happen to respool messages by nnml backend, gnus prompts me for > > which nnml server I want. I hoped to do something similar with nnir. > > Well, it appears that gnus-opened-servers contains a list of all open > servers, so, hum. > > Does the following do the trick (with M-:)? > > (setq nnir-mail-backend (car (nth 0 gnus-opened-servers))) > > Also try 1, 2 and so on instead of 0. > > Like I said, it must be done manually right now, and I intend to add a > feature to nnir such that you can search several servers, but I > haven't been able to do it, yet. I think it is more involved than > what is shown above. For example, in addition to nnir-mail-backend > you need to set other variables, eg nnir-glimpse-home and so on. It doesn't seem to be working for me: I've set `glimpse-home' as below: (setq nnir-glimpse-home "/home/reader/.glimpse-n2m") I hit the right server (from your suggestions) as below: (setq nnir-mail-backend (car (nth 5 gnus-opened-servers))) returns: (nnml "n2m" (nnml-directory "/mnt/pack/n2m/") (nnml-active-file "/mnt/pack/n2m/active")) and finally resetting: `nnir-glimpse-remove-prefix' M-: (setq nnir-glimpse-remove-prefix "/mnt/pack/n2m") And by jove, it all worked. Just looking at what was returned when I evaled: (setq nnir-mail-backend (car (nth 5 gnus-opened-servers))) It appears that at least 2 of the pieces of information that nnir needs, to search a different server, are in that return. Seems that nnir could be made to snarf it up by prompting the user for a server name, then scanning that list for a match, slurping up the strip prefix and name as it goes. All thats missing in that picture is the proper glimpseindex directory. Maybe if nnir required the user to name the glimpse indexs after server names it could find the right one by the information included in: (nnml "n2m" (nnml-directory "/mnt/pack/n2m/") (nnml-active-file "/mnt/pack/n2m/active")) Or when prompting the user for server name. Completion could be used against that list to help the user get the name right. Or possibly nnir could be made to manage the glimpseindexing part too, and would retain the directory/server names. Prompt: What server would you like to index today: Prompt: indexing n2m .glimpse_FILES written to ~/.glimpse-SERVERNAME