From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/60199 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Some examples of agent fetching unattended Date: Mon, 25 Apr 2005 13:32:01 -0500 Organization: Still searching... Message-ID: <87zmvmlnby.fsf@newsguy.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1114454411 32093 80.91.229.2 (25 Apr 2005 18:40:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Apr 2005 18:40:11 +0000 (UTC) Original-X-From: ding-owner+M8727@lists.math.uh.edu Mon Apr 25 20:40:08 2005 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DQ8U4-0001ai-D9 for ding-account@gmane.org; Mon, 25 Apr 2005 20:39:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1DQ8P5-0003tY-00; Mon, 25 Apr 2005 13:33:55 -0500 Original-Received: from util2.math.uh.edu ([129.7.128.23]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1DQ8Ow-0003tQ-00 for ding@lists.math.uh.edu; Mon, 25 Apr 2005 13:33:46 -0500 Original-Received: from quimby.gnus.org ([80.91.224.244]) by util2.math.uh.edu with esmtp (Exim 4.30) id 1DQ8Oq-000833-FU for ding@lists.math.uh.edu; Mon, 25 Apr 2005 13:33:42 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1DQ8On-0000Fr-00 for ; Mon, 25 Apr 2005 20:33:37 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DQ8JB-0008H8-TD for ding@gnus.org; Mon, 25 Apr 2005 20:27:50 +0200 Original-Received: from adsl-68-74-117-211.dsl.emhril.ameritech.net ([68.74.117.211]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Apr 2005 20:27:49 +0200 Original-Received: from reader by adsl-68-74-117-211.dsl.emhril.ameritech.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Apr 2005 20:27:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 26 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: adsl-68-74-117-211.dsl.emhril.ameritech.net User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:Pg6KABJW9QEuw4RyujoTStVR6sE= X-Spam-Score: -4.1 (----) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:60199 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:60199 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)