Gnus development mailing list
 help / color / mirror / Atom feed
* Re: automatic mail checking & notify
@ 1996-10-16 18:43 David Benjamin
  1996-10-17 19:30 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: David Benjamin @ 1996-10-16 18:43 UTC (permalink / raw)



Thanks very much for the pointers to display-time.el, Picons, and Xfaces.
The display-time.el code was very educational, however the Picons and Xfaces
stuff isn't of use to since I'm running on WIN32, and mail works different.

Perhaps I could bother everyone for a second question.  I've a small piece
of code below which will check every X seconds for articles of subscribedness
level Y, this is perfect for what I want.  I can make all important
stop-what-your-doing-and-read-me mail groups at level 1 or so and limit
interruptions for mail directly to me and, of course, any and all
postings to alt.hygiene.male.

However, I'm stuck as to how to detect whether any new mail has actually
been recieved for the groups fetched.  Is there a way to detect new mail
for a level of subscription or, failing that, for a specific group?

Again, thanks very much for your help.  Gnus is good.

Dave Benjamin
dbjag@aolnorth.com

--

(defvar check-gnus-timer nil)

(defvar check-gnus-interval 300
  "* Seconds between gnus-checks.")

(defvar check-gnus-level 1
  "* Gnus level to check.")

(defun check-gnus ()  
  ""
  (interactive)
  (and check-gnus-timer (cancel-timer check-gnus-timer))
  (setq check-gnus-timer
	(run-at-time nil check-gnus-interval 'check-gnus-event-handler)))

(defun check-gnus-event-handler ()
  (message (concat (current-time-string) "- check-gnus - checking mail..."))

  ; hmm. perhaps I should save current state here for comparison after check?

  (gnus-group-get-new-news check-gnus-level)

  ; insert here:
  ; clever piece of code that will detect if new mail has been
  ; received, and play an amusing sound, like this...

  (call-process "playsnd" nil t nil "s:\\buzzly.wav")
)

---


^ permalink raw reply	[flat|nested] 5+ messages in thread
* automatic mail checking & notify
@ 1996-10-04 15:25 David Benjamin
  1996-10-13 15:29 ` Brian Edmonds
  0 siblings, 1 reply; 5+ messages in thread
From: David Benjamin @ 1996-10-04 15:25 UTC (permalink / raw)



Is there a way (or has someone coded a way) to have gnus automatically
check mail at set intervals, and perhaps beep (or call a program to 
play an annoying ice cream truck sound) when new mail is recieved?

This would be a great feature, as a frequent complaint of co-workers
using Eudora (on win32) is that it will play the notify sound on
receipt of *any* message.  More desirable would be to play a sound
only when certain groups get mail, such as personal mail.

Any help/pointers/ruminations appreciated.

Dave Benjamin
dbjag@aolnorth.com




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

end of thread, other threads:[~1996-10-17 19:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-10-16 18:43 automatic mail checking & notify David Benjamin
1996-10-17 19:30 ` Lars Magne Ingebrigtsen
  -- strict thread matches above, loose matches on Subject: below --
1996-10-04 15:25 David Benjamin
1996-10-13 15:29 ` Brian Edmonds
1996-10-13 16:43   ` Mark Boyns

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