Gnus development mailing list
 help / color / mirror / Atom feed
From: Marcus Frings <iam-est-hora-surgere@despammed.com>
Subject: Re: request for simple handler or batch job to get mail/news
Date: Sat, 03 Jul 2004 11:47:59 +0200	[thread overview]
Message-ID: <vita-brevis-breviter-in-brevi-finietur-mors-venit-velociter-quae-neminem-veretur-87acyh8lrk.fsf@shodan.gothgoose.net> (raw)
In-Reply-To: <hhk6xoctu3.fsf@blah.pl>

* Maciej Matysiak <phoner.ding@blah.pl> wrote:
> On the 30th of June 2004 at 23:02, Harry Putnam <reader#newsguy.com> wrote:

>> I'd like to see some examples of what people use to automatically get
>> mail/news when gnus is running. 

> my gnus runs sometimes for weeks, and of course takes care of checking mail

> (often) and news (not too often) when i don't touch the keyboard. the relevant
> part of my .gnus:

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

> (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 3 6)
> (gnus-demon-add-handler 'gnus-demon-scan-news 66 6)

> i'm not sure where i got that from ;) but i've been using it for, like, years.

Me, too. Recently we have discussed this in gnu.emacs.help (see my posting
with the MID
<vita-brevis-breviter-in-brevi-finietur-mors-venit-velociter-quae-neminem-veretur-87659ip8vj.fsf@shodan.gothgoose.net>
and the thread around).

You can delete the complete code in your configuration and you only
have to add this single line

(gnus-demon-add-handler 'gnus-demon-scan-news 5 10)

to make Gnus check both mails and news.

Regards,
Marcus
-- 
"Did you really think I would not deduce where you would run to, insect?"
                                                 (Shodan in System Shock)




      parent reply	other threads:[~2004-07-03  9:47 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
2004-07-01 14:12     ` Maciej Matysiak
2004-07-03  9:47   ` Marcus Frings [this message]

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=vita-brevis-breviter-in-brevi-finietur-mors-venit-velociter-quae-neminem-veretur-87acyh8lrk.fsf@shodan.gothgoose.net \
    --to=iam-est-hora-surgere@despammed.com \
    --cc=protagonist@gmx.net \
    /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).