info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GNUS demon/periodic scan for new mails


From: Stephen Patterson
Subject: Re: GNUS demon/periodic scan for new mails
Date: Tue, 22 Mar 2005 13:59:35 GMT
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.3 (gnu/linux)

Dhruva Krishnamurthy <Dhruva.Krishnamurthy@in.bosch.com> writes:

> Hello,
>  I would like to periodically check for my IMAP mails. I am using this in my
>  .emacs (instead of .gnus, as I do not want to keep another file).

I'm finding this bit of elisp works - checks for new mail at levels 2 &
above every 5 minutes.

(defun my-check-mail ()
  "Fetch new mails only."
  (gnus-group-get-new-news 2))
(add-hook 'gnus-startup-hook
          '(lambda ()
             (gnus-demon-add-handler 'my-check-mail 5 0)))


-- 
Stephen Patterson http://patter.mine.nu/
steveSPAM@.patter.mine.nu  remove SPAM to reply        
Linux Counter No: 142831 GPG Public key: 252B8B37        
Caution: breathing may be hazardous to your health.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]