* Agent fetch for a particular server?
@ 2008-12-31 13:11 Steinar Bang
2009-01-01 5:14 ` William Xu
0 siblings, 1 reply; 4+ messages in thread
From: Steinar Bang @ 2008-12-31 13:11 UTC (permalink / raw)
To: ding
Is there a way to make Agent fetch all articles from all groups on a
particular server (eg. my nnimap server)?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Agent fetch for a particular server?
2008-12-31 13:11 Agent fetch for a particular server? Steinar Bang
@ 2009-01-01 5:14 ` William Xu
2009-01-02 8:05 ` Steinar Bang
0 siblings, 1 reply; 4+ messages in thread
From: William Xu @ 2009-01-01 5:14 UTC (permalink / raw)
To: ding
Steinar Bang <sb@dod.no> writes:
> Is there a way to make Agent fetch all articles from all groups on a
> particular server (eg. my nnimap server)?
I think you can set gnus-select-method to that particular server when
running agent, use something like:
,----
| (if noninteractive
| (setq gnus-select-method '((nnimap "imap.foo.bar")))
| ;; else...
| )
`----
--
William
http://williamxu.net9.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Agent fetch for a particular server?
2009-01-01 5:14 ` William Xu
@ 2009-01-02 8:05 ` Steinar Bang
2009-01-02 18:44 ` William Xu
0 siblings, 1 reply; 4+ messages in thread
From: Steinar Bang @ 2009-01-02 8:05 UTC (permalink / raw)
To: ding
>>>>> William Xu <william.xwl@gmail.com>:
> I think you can set gnus-select-method to that particular server when
> running agent, use something like:
> ,----
> | (if noninteractive
> | (setq gnus-select-method '((nnimap "imap.foo.bar")))
> | ;; else...
> | )
> `----
Hm... this is a way for batch fetching of articles from the imap server
into the Agent cache?
Interesting, but what I was looking for was an interactive command to
fetch all groups from a particular server.
(But thanx for taking the time to respond! :-) )
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Agent fetch for a particular server?
2009-01-02 8:05 ` Steinar Bang
@ 2009-01-02 18:44 ` William Xu
0 siblings, 0 replies; 4+ messages in thread
From: William Xu @ 2009-01-02 18:44 UTC (permalink / raw)
To: ding
Steinar Bang <sb@dod.no> writes:
>>>>>> William Xu <william.xwl@gmail.com>:
>
>> I think you can set gnus-select-method to that particular server when
>> running agent, use something like:
>
>> ,----
>> | (if noninteractive
>> | (setq gnus-select-method '((nnimap "imap.foo.bar")))
>> | ;; else...
>> | )
>> `----
>
> Hm... this is a way for batch fetching of articles from the imap server
> into the Agent cache?
Oh, yes. I always run the Agent as a cron job at background. And using
the following gnus deamon to read the cache:
,----
| (defun xwl-gnus-group-get-new-news ()
| (interactive)
| (if gnus-plugged
| (gnus-group-get-new-news 3)
| ;; Read agent cache.
| (gnus-read-active-file)
| (gnus-get-unread-articles)
| (gnus-group-list-groups)))
`----
Seems working fine for me. It would be better if there was a
gnus-agent-group-get-new-news for reading the cache, though.
--
William
http://williamxu.net9.org
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-01-02 18:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-31 13:11 Agent fetch for a particular server? Steinar Bang
2009-01-01 5:14 ` William Xu
2009-01-02 8:05 ` Steinar Bang
2009-01-02 18:44 ` William Xu
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).