Gnus development mailing list
 help / color / mirror / Atom feed
From: Harry Putnam <reader@newsguy.com>
Subject: demons and handlers
Date: 25 Sep 1999 10:09:02 -0700	[thread overview]
Message-ID: <m3n1uaude9.fsf@satellite.local.lan> (raw)


I've never been able to figure out the demon/handler syntax enough to
get much use from it.

Using a function posted by Larsi a while back, I want to run this
function every 5 minutes while online.  

Rather than try for sophisticated code to check for onlinedness or
whatever, probably easier to just eval the code when going online and
"uneval" it when going off.  (not sure how to uneval code either but
seems one could)

The function allows an online gnus to exchange information with an
offline gnus:

 (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))


I'd like to run this every 5 minutes.   How would this be accomplished?


             reply	other threads:[~1999-09-25 17:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-25 17:09 Harry Putnam [this message]
1999-09-26  2:38 ` Karl Kleinpaste
1999-09-26 15:53   ` Harry Putnam
1999-09-26 16:54     ` Kai Großjohann
1999-09-27  5:36       ` Harry Putnam

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=m3n1uaude9.fsf@satellite.local.lan \
    --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).