info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: use gnus-agent-fetch-selected-article only in certain groups


From: Reiner Steib
Subject: Re: use gnus-agent-fetch-selected-article only in certain groups
Date: Mon, 13 Dec 2004 13:26:22 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

On Mon, Dec 13 2004, Uwe Brauer wrote:

> I know that for the  setting
> (add-hook 'gnus-select-article-hook 'gnus-agent-fetch-selected-article)       
>
> every selected message gets downloaded. Now I want this only for
> certain groups and thought of using gnus-group-customize.

(Ab)using `eval' in `gnus-parameters' might do the trick:

(require 'gnus-sum) ;; gnus-select-article-hook is defined there.
(setq gnus-parameters
      '(("certain\\.group"
         (eval
          (add-to-list (make-local-variable 'gnus-select-article-hook)
                       'gnus-agent-fetch-selected-article)))))

Probably you can also use `add-hook' instead of `add-to-list' here (I
didn't try).  Does it work?

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]