Gnus development mailing list
 help / color / mirror / Atom feed
* Multiple mail backends/nnir
@ 2000-04-16 11:53 Harry Putnam
  2000-04-16 13:01 ` Kai Großjohann
  0 siblings, 1 reply; 7+ messages in thread
From: Harry Putnam @ 2000-04-16 11:53 UTC (permalink / raw)



Multiple mail backends and nnir:
In this case just several of the same style backends.   Three nnml
servers.

Easy enough to designate directory,nov files, and active file in
Server (add) dialog.  

Anyone have a suggestion of how to setup a list of nnir variables that
will correspond to the various nnml servers.

The idea being that the user will be prompted for which set of nnir
variables to use when calling `G G' or `C-u G G'  in group buffer.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Multiple mail backends/nnir
  2000-04-16 11:53 Multiple mail backends/nnir Harry Putnam
@ 2000-04-16 13:01 ` Kai Großjohann
  2000-04-16 17:59   ` Harry Putnam
  0 siblings, 1 reply; 7+ messages in thread
From: Kai Großjohann @ 2000-04-16 13:01 UTC (permalink / raw)
  Cc: ding

This is on my todo list.  Alas, it's been on my todo list for quite a
while, and nothing much has happened, yet.

But you might be able to kluge something by writing little functions
which set nnir-mail-backend and nnir-search-engine.
kai
-- 
The birch trees fly way too low these days.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Multiple mail backends/nnir
  2000-04-16 13:01 ` Kai Großjohann
@ 2000-04-16 17:59   ` Harry Putnam
  2000-04-16 18:40     ` Kai Großjohann
  2000-04-17 13:30     ` David S. Goldberg
  0 siblings, 2 replies; 7+ messages in thread
From: Harry Putnam @ 2000-04-16 17:59 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> This is on my todo list.  Alas, it's been on my todo list for quite a
> while, and nothing much has happened, yet.
> 
> But you might be able to kluge something by writing little functions
> which set nnir-mail-backend and nnir-search-engine.

Yes, but I don't have much of a clue how to proceed.

I'm thinking a hook of somekind that gets invoked when nnir is
invoked.  That hook would be a list of possible of `nnir-glimpse-home'
vars.

Seems like it would only  need to be `nnir-glimpse-home' in my case. 

If I have  .glimpse-nnml 1,2,3  directories with the glimpse generated
files for each backend.

Could it be something similar to what happens when you invoke `B r'
(respool).  You are prompeted for the backend to use.  If you have
more than one nnml then you are prompted for which one to use.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Multiple mail backends/nnir
  2000-04-16 17:59   ` Harry Putnam
@ 2000-04-16 18:40     ` Kai Großjohann
  2000-04-16 20:36       ` Harry Putnam
  2000-04-17 13:30     ` David S. Goldberg
  1 sibling, 1 reply; 7+ messages in thread
From: Kai Großjohann @ 2000-04-16 18:40 UTC (permalink / raw)
  Cc: ding

Harry Putnam <reader@newsguy.com> writes:

> I'm thinking a hook of somekind that gets invoked when nnir is
> invoked.  That hook would be a list of possible of `nnir-glimpse-home'
> vars.

Ah, of course.  Silly me.

How about this one?

(defun hp-search-backend-1 ()
  (interactive)
  (setq nnir-glimpse-home ...)
  (setq nnir-mail-backend ...)
  (call-interactively 'gnus-group-make-nnir-group))

Note: You can't have more than one query in progress at any one time
using the above method.  Like I said, just a kluge.

kai
-- 
The birch trees fly way too low these days.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Multiple mail backends/nnir
  2000-04-16 18:40     ` Kai Großjohann
@ 2000-04-16 20:36       ` Harry Putnam
  2000-04-17  9:55         ` Kai Großjohann
  0 siblings, 1 reply; 7+ messages in thread
From: Harry Putnam @ 2000-04-16 20:36 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> Harry Putnam <reader@newsguy.com> writes:
> 
> > I'm thinking a hook of somekind that gets invoked when nnir is
> > invoked.  That hook would be a list of possible of `nnir-glimpse-home'
> > vars.
> 
> Ah, of course.  Silly me.
> 
> How about this one?
> 
> (defun hp-search-backend-1 ()
>   (interactive)
>   (setq nnir-glimpse-home ...)
>   (setq nnir-mail-backend ...)
>   (call-interactively 'gnus-group-make-nnir-group))
> 
> Note: You can't have more than one query in progress at any one time
> using the above method.  Like I said, just a kluge.

Kai, you are a patient and  generous soul...

How can I get gnus tp  prompt for nnir-glimpse-home  from these functions?

 (defun hp-search-backend-1 ()
   (interactive)
   (setq nnir-glimpse-home "/home/reader/.glimpse-m)
;   (setq nnir-mail-backend ...)
   (call-interactively 'gnus-group-make-nnir-group))


 (defun hp-search-backend-2 ()
   (interactive)
   (setq nnir-glimpse-home /home/reader/.glimpse-m2)
;   (setq nnir-mail-backend ...)
   (call-interactively 'gnus-group-make-nnir-group))

 (defun hp-search-backend-3 ()
   (interactive)
   (setq nnir-glimpse-home /home/reader/.glimpse-n2m)
;   (setq nnir-mail-backend ...)
   (call-interactively 'gnus-group-make-nnir-group))


Of course they can be evaled when needed, but I hoped to see how to
make gnus offer me a list of nnir-glimpse-home directories when I
press 'G G'.  Probably complicated coding eh?


What about a function that prompts for nnir-glimpse-home that is
called manually with `M-x' then.

So that when I say M-x hp-search-backend,   gnus prompts me for one
with completion available...... he he.  Never satisfied 





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Multiple mail backends/nnir
  2000-04-16 20:36       ` Harry Putnam
@ 2000-04-17  9:55         ` Kai Großjohann
  0 siblings, 0 replies; 7+ messages in thread
From: Kai Großjohann @ 2000-04-17  9:55 UTC (permalink / raw)
  Cc: ding

Harry Putnam <reader@newsguy.com> writes:

> How can I get gnus tp  prompt for nnir-glimpse-home  from these functions?

(defun hp-search (dir)
  (interactive "DGlimpse home dir: ")
  (setq nnir-glimpse-home dir)
  ; ...
  (call-interactively 'gnus-group-make-nnir-group))

Be careful to enter the final slash when entering the directory name.

kai
-- 
The birch trees fly way too low these days.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Multiple mail backends/nnir
  2000-04-16 17:59   ` Harry Putnam
  2000-04-16 18:40     ` Kai Großjohann
@ 2000-04-17 13:30     ` David S. Goldberg
  1 sibling, 0 replies; 7+ messages in thread
From: David S. Goldberg @ 2000-04-17 13:30 UTC (permalink / raw)


>> But you might be able to kluge something by writing little functions
>> which set nnir-mail-backend and nnir-search-engine.

> Yes, but I don't have much of a clue how to proceed.

I thought about trying to integrate all this in a manner similar (I
think) to what you are asking for, but ended up with this much more
simplistic approach in my .gnus:

;;;; nnir setup
(require 'nnir)
(defun dsg-nnir-search-mail ()
  (interactive)
  (setq nnir-search-engine 'glimpse
	nnir-mail-backend '(nnml "")
	nnir-glimpse-remove-prefix "/afs/rcf/user/dsg/\\.Mail/"
	nnir-glimpse-home (expand-file-name "~/.Mail/incoming")))

(defun dsg-nnir-search-cache ()
  (interactive)
  (setq nnir-search-engine 'glimpse
	nnir-mail-backend (cdr (assoc "cache" gnus-server-alist))
	nnir-glimpse-remove-prefix ".*dsg/\\.News/cache/"
	nnir-glimpse-home (expand-file-name "~/.Mail/incoming")))

(dsg-nnir-search-mail)
;;;; end .gnus snippet

When I want to search my cache, I just have to do M-x
dsg-nnir-search-cache before running GG.
-- 
Dave Goldberg
Post: The Mitre Corporation\MS K207\202 Burlington Rd.\Bedford, MA 01730
Phone: 781-271-3887
Email: dsg@mitre.org



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2000-04-17 13:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-04-16 11:53 Multiple mail backends/nnir Harry Putnam
2000-04-16 13:01 ` Kai Großjohann
2000-04-16 17:59   ` Harry Putnam
2000-04-16 18:40     ` Kai Großjohann
2000-04-16 20:36       ` Harry Putnam
2000-04-17  9:55         ` Kai Großjohann
2000-04-17 13:30     ` David S. Goldberg

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).