Gnus development mailing list
 help / color / mirror / Atom feed
From: Kevin Greiner <kevin.greiner@vignette.com>
Subject: Re: Some examples of agent fetching unattended
Date: Sun, 01 May 2005 12:18:35 -0500	[thread overview]
Message-ID: <uk6min9uc.fsf@vignette.com> (raw)
In-Reply-To: <87zmvmlnby.fsf@newsguy.com>

Harry Putnam <reader@newsguy.com> writes:

> I've sort of lost track of how to do an agent fetch combined into
> somekind of handler.  Like when mail/news is scanned and downloaded,
> then to invoke a full agent fetch.
>
> Anyone have example code I can hack up?
>
> I've been using code someone (now lost to memory) posted here and I'd
> like to incorporate an agent fetch into it.
>
> (defun gnus-demon-scan-mail ()
>   (when (and (gnus-alive-p) mail-here)
>     (save-excursion
>       (set-buffer gnus-group-buffer)
>       (gnus-group-get-new-news 3)

        (gnus-agent-fetch-session)))) ;; This would fetch all of the
        ;; new headers into the agent and selected articles
>
> (defun gnus-demon-scan-news ()
>   (when (gnus-alive-p)
>     (save-excursion
>       (set-buffer gnus-group-buffer)
>       (gnus-group-get-new-news))))
>
> (gnus-demon-add-handler 'gnus-demon-scan-mail 10 10)
> (gnus-demon-add-handler 'gnus-demon-scan-news 13 10)



      reply	other threads:[~2005-05-01 17:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-25 18:32 Harry Putnam
2005-05-01 17:18 ` Kevin Greiner [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=uk6min9uc.fsf@vignette.com \
    --to=kevin.greiner@vignette.com \
    /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).