From: Harry Putnam <reader@newsguy.com>
Subject: Some examples of agent fetching unattended
Date: Mon, 25 Apr 2005 13:32:01 -0500 [thread overview]
Message-ID: <87zmvmlnby.fsf@newsguy.com> (raw)
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))))
(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)
next reply other threads:[~2005-04-25 18:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-25 18:32 Harry Putnam [this message]
2005-05-01 17:18 ` Kevin Greiner
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=87zmvmlnby.fsf@newsguy.com \
--to=reader@newsguy.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).