From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/25383 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.gnus.general Subject: Re: demons and handlers Date: 26 Sep 1999 18:54:30 +0200 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035162777 13654 80.91.224.250 (21 Oct 2002 01:12:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:12:57 +0000 (UTC) Return-Path: Original-Received: from bart.math.uh.edu (bart.math.uh.edu [129.7.128.48]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id MAA23405 for ; Sun, 26 Sep 1999 12:57:17 -0400 (EDT) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by bart.math.uh.edu (8.9.1/8.9.1) with ESMTP id LAB23126; Sun, 26 Sep 1999 11:57:07 -0500 (CDT) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Sun, 26 Sep 1999 11:57:14 -0500 (CDT) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id LAA05167 for ; Sun, 26 Sep 1999 11:57:04 -0500 (CDT) Original-Received: from waldorf.cs.uni-dortmund.de ([129.217.4.42]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id MAA23390 for ; Sun, 26 Sep 1999 12:55:01 -0400 (EDT) Original-Received: from marcy.cs.uni-dortmund.de (marcy.cs.uni-dortmund.de [129.217.20.159]) by waldorf.cs.uni-dortmund.de with ESMTP id SAA11662 for ; Sun, 26 Sep 1999 18:54:30 +0200 (MES) Original-Received: from lucy.cs.uni-dortmund.de (lucy [129.217.20.160]) by marcy.cs.uni-dortmund.de id SAA21135; Sun, 26 Sep 1999 18:54:30 +0200 (MET DST) Original-Received: (from grossjoh@localhost) by lucy.cs.uni-dortmund.de (8.9.3/8.9.3/Debian/GNU) id SAA02999; Sun, 26 Sep 1999 18:54:30 +0200 Original-To: ding@gnus.org In-Reply-To: Harry Putnam's message of "26 Sep 1999 08:53:32 -0700" Original-Lines: 24 User-Agent: Gnus/5.070096 (Pterodactyl Gnus v0.96) Emacs/20.4 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:25383 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:25383 Harry Putnam writes: > (defun lars-fetch-news () > (interactive) > (push "/usr/local/pgnus-0.96/lisp" load-path) > (let ((init-file-user "") > (gnus-always-read-dribble-file t)) > (gnus)) > (gnus-group-send-drafts) > (gnus-agent-fetch-session) > (gnus-group-quit)) This looks as if it was intended to be run from the command line, like ``emacs -batch -f lars-fetch-news''. For periodically checking for new mail, I think there are some ready-made functions. Load gnus-demon.el and then look for functions starting with gnus-demon. gnus-demon-add-scanmail and gnus-demon-add-rescan look promising, judging solely from their names. kai -- I like BOTH kinds of music.