[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnus-refer-article-method - per group
From: |
Katsumi Yamaoka |
Subject: |
Re: gnus-refer-article-method - per group |
Date: |
Tue, 06 Oct 2009 08:41:03 +0900 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) |
>>>>> Andrzej Adam Filip wrote:
> Is it possible to make gnus-refer-article-method group dependent?
> How to do it?
> Specifics:
> I can access very good 'archive news server' of *only* 'news:pl.*'.
This may work, though I'm not sure:
(add-to-list
'gnus-parameters
'("\\`pl\\."
(gnus-refer-article-method '(nntp "news"))))
Where "\\`pl\\." is a regular expression matching groups of which
the names begin with "pl." . If the names begin with "news:pl." ,
replace it with "\\`news:pl\\." . And '(nntp "news") is a select
method, that is similar to the one used for `gnus-select-method'.
So for you it may be something like the following:
(add-to-list
'gnus-parameters
'("\\`nntp\\+SERVER:pl\\."
(gnus-refer-article-method
'(nntp "SERVER"
(nntp-address "news.server.example.com")
(nntp-open-connection-function nntp-open-network-stream)))))
Don't forget to quote the method with the beginning "'" (because
the method form will be evaluated).
Why I'm not sure is that I have no belief the `refer-article'
command runs always in the summary buffer, that's the only place
in which `gnus-refer-article-method' has a per group value.