Ted Zlatanov <[EMAIL PROTECTED]> writes:

Hi Ted,

>>> 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.
>
> You could run something in the nn*-split-fancy list, and always return
> nil (so it will not actually affect the splitting).

I tried this:

,----[ ~/.gnus.el ]
| (defun th-new-imap-mail ()
|   (shell-command (concat "append-to-dwm-statusbar.fish "
|                          "Gnus: New mail!"))
|   nil)
| 
| (setq nnimap-split-rule 'nnimap-split-fancy
|       nnimap-split-fancy '(: th-new-imap-mail))
`----

But the function `th-new-imap-mail' is never run.

Any ideas?

Bye,
Tassilo
-- 
The glass is neither half-full nor half-empty: it's twice as big as it
needs to be.



_______________________________________________
info-gnus-english mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/info-gnus-english

Reply via email to