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

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

Re: Run a function when new mail arrives


From: Ted Zlatanov
Subject: Re: Run a function when new mail arrives
Date: Thu, 18 Jan 2007 13:11:05 -0500
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.92 (gnu/linux)

On 18 Jan 2007, reinersteib+gmane@imap.cc wrote:

On Thu, Jan 18 2007, Tassilo Horn wrote:

>> I use Gnus with an IMAP account and let gnus demon check for new mail
>> every 5 minutes of emacs idle time.
>>
>> Now I'd like to run a function whenever new mail arrives.
>>
>> Is (or better how) is that possible?
>
> There's `nnmail-prepare-save-mail-hook', but probably this is only run
> for `mail-sources'.  I don't know if there's something similar for
> IMAP.

You could run something in the nn*-split-fancy list, and always return nil
(so it will not actually affect the splitting).

Ted


reply via email to

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