Gnus development mailing list
 help / color / mirror / Atom feed
From: William Xu <william.xwl@gmail.com>
To: ding@gnus.org
Subject: Re: Agent fetch for a particular server?
Date: Sat, 03 Jan 2009 02:44:55 +0800	[thread overview]
Message-ID: <m24p0hcztk.fsf@gmail.com> (raw)
In-Reply-To: <uljtuxhcx.fsf@dod.no>

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




      reply	other threads:[~2009-01-02 18:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-31 13:11 Steinar Bang
2009-01-01  5:14 ` William Xu
2009-01-02  8:05   ` Steinar Bang
2009-01-02 18:44     ` William Xu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m24p0hcztk.fsf@gmail.com \
    --to=william.xwl@gmail.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).