home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / aux / 4007 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.8 KB

  1. Path: sparky!uunet!mcsun!uknet!bilpin!pd
  2. From: pd@bilpin.co.uk (Paul Davison)
  3. Newsgroups: comp.unix.aux
  4. Subject: Re: A simple mail notifier hybrid application
  5. Message-ID: <1992Nov10.111110.4986@bilpin.co.uk>
  6. Date: 10 Nov 92 11:11:10 GMT
  7. References: <1992Nov5.154441.24439@bilpin.co.uk> <1992Nov5.224949.26290@newsgate.sps.mot.com> <1226@jagubox.gsfc.nasa.gov>
  8. Sender: news@bilpin.co.uk (NetNews Administrator)
  9. Organization: SRL Data
  10. Lines: 30
  11.  
  12. >One small nit-picky point. I looked at the code for just a smidge,
  13. >but it looks like it depends on a change in 'stat' of the user's mailbox
  14. >(/usr/mail) to see if new mail has been rec'd. This is great. But, what
  15. >if mail exists there that you haven't read when you startup? Not doesn't
  16. >(I think) notify you.
  17.  
  18. >Maybe it would be better to, at startup, get the 'stat'. If non-zero,
  19. >the Notify.
  20.  
  21. >Whatcha think?
  22.  
  23. Yeah, I did think about this. The way I tend to use my mailbox, stuff
  24. that is Really Important gets left in my incoming folder so that I get
  25. to see it all the time. I thought it was debatable whether I should get
  26. notified about mail I'd already read upon login.
  27.  
  28. I thought of ways you could check whether there was any *unread* mail
  29. when you log in. Some user agents insert a Status: header in each
  30. message, which would do the trick, but this isn't done by all UAs and I
  31. wanted to keep things simple.
  32.  
  33. However I think I might be able to use the same trick at startup that I
  34. do to work out if the messages have been read, which is to look at
  35. stat's st_atime field, which isn't altered by write(2), and compare it
  36. with st_mtime, which *is* altered by write(2). I'll have a play with
  37. this today... more later!
  38. --
  39. Paul Davison (postmaster)   SRL Data  || E-Mail    : pd@bilpin.co.uk
  40. 1 Perren Street, London NW5 3ED, UK   || Applelink : UK.DTS
  41. Tel: +44 71 267 2561                  || Fax:      : +44 71 267 1497
  42.