Gnus development mailing list
 help / color / mirror / Atom feed
* display-time-mail-function and GNU Emacs 21
       [not found] <m3r8onfie6.fsf@totally-fudged-out-message-id>
@ 2002-01-19 11:46 ` Pavel Janík
  2002-01-20  0:04   ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Pavel Janík @ 2002-01-19 11:46 UTC (permalink / raw)


Hi,

GNU Emacs 21.1 supports display-time-mail-icon and similar stuff which
allows you to display a mail icon in the mode-line if you have new
mail. Do we have any generic way to check, if the user has new mail?

GNU Emacs has display-time-mail-function which is the function to call, for
indicating existence of new mail. And this could be hooked together with
some Gnus function. Do we have generic one for all backends? Should we
have one?

I use procmail to sort my files, so I have written a function to check if
there is any file with non-zero length and am using it. But it would be
nice if it could be done automagically ;-)
-- 
Pavel Janík

panic("Lucy in the sky....");
                  -- 2.2.16 arch/sparc64/kernel/starfire.c



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: display-time-mail-function and GNU Emacs 21
  2002-01-19 11:46 ` display-time-mail-function and GNU Emacs 21 Pavel Janík
@ 2002-01-20  0:04   ` Lars Magne Ingebrigtsen
  2002-01-20 10:42     ` Pavel Janík
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Magne Ingebrigtsen @ 2002-01-20  0:04 UTC (permalink / raw)


Pavel@Janik.cz (Pavel Janík) writes:

> GNU Emacs 21.1 supports display-time-mail-icon and similar stuff which
> allows you to display a mail icon in the mode-line if you have new
> mail. Do we have any generic way to check, if the user has new mail?

No, I don't think so.  Gnus can fetch mail via approx. one gazillion
methods, and most of these operate on the "we won't know whether
there's mail there until we try to fetch it" principle.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: display-time-mail-function and GNU Emacs 21
  2002-01-20  0:04   ` Lars Magne Ingebrigtsen
@ 2002-01-20 10:42     ` Pavel Janík
  0 siblings, 0 replies; 3+ messages in thread
From: Pavel Janík @ 2002-01-20 10:42 UTC (permalink / raw)


   From: Lars Magne Ingebrigtsen <larsi@gnus.org>
   Date: Sun, 20 Jan 2002 01:04:29 +0100

Hi Lars,

   > > mail. Do we have any generic way to check, if the user has new mail?
   > 
   > No, I don't think so.  Gnus can fetch mail via approx. one gazillion
   > methods, and most of these operate on the "we won't know whether
   > there's mail there until we try to fetch it" principle.

OK, thank you (I thought it is so). I have extended display-time-mail-.*
for directory checking and will commit it soon do Emacs' CVS (see
emacs-devel@ for the first version).
-- 
Pavel Janík

Would you like to code up this, test it and send it to me?
                  -- Linus "lazy is my middle name" Torvalds in linux-kernel



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-01-20 10:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <m3r8onfie6.fsf@totally-fudged-out-message-id>
2002-01-19 11:46 ` display-time-mail-function and GNU Emacs 21 Pavel Janík
2002-01-20  0:04   ` Lars Magne Ingebrigtsen
2002-01-20 10:42     ` Pavel Janík

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).