Gnus development mailing list
 help / color / mirror / Atom feed
From: Harry Putnam <reader@newsguy.com>
Subject: Re: request for simple handler or batch job to get mail/news
Date: Thu, 01 Jul 2004 07:31:48 -0500	[thread overview]
Message-ID: <m36597zz63.fsf@newsguy.com> (raw)
In-Reply-To: <hhk6xoctu3.fsf@blah.pl>

Maciej Matysiak <phoner.ding@blah.pl> writes:

> [Quoted text removed due to X-No-Archive]

I've added this modified version to a file gnus reads on startup:
  (setq gnus-use-demon t)
  (gnus-demon-init)
  (gnus-demon-add-rescan)
  
  (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-demon-add-handler 'gnus-demon-scan-mail 7 1)

Then left gnus alone for over 25 minutes.... 
During that 25 minutes I mailed myself several messages from the
command line.  I see them appear in the spool directory where gnus
gets its mail.

However none are pulled into gnus.

After reading the section on `handlers' I'm thinking the above code
should pull in mail every 7 minutes if gnus has been idle for 1
minute.

How can I debug this... I see no evidence that anything has happened
at all.  Nothing appears in *Messages* buffer.

Loading the code directly from here seems to have no effect either.





  parent reply	other threads:[~2004-07-01 12:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-30 21:02 Harry Putnam
     [not found] ` <hhk6xoctu3.fsf@blah.pl>
2004-07-01 11:08   ` Harry Putnam
2004-07-01 12:41     ` Maciej Matysiak
2004-07-01 12:31   ` Harry Putnam [this message]
2004-07-01 14:12     ` Maciej Matysiak
2004-07-03  9:47   ` Marcus Frings

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=m36597zz63.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).