[Top][All Lists]

[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 <address@hidden> 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
address@hidden  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]