home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.misc
- Path: sparky!uunet!portal!ntmtv!ntmtv!montasmm
- From: montasmm@ntmtv.UUCP (Medi Montaseri)
- Subject: System mailbox ../spool/mail/user_mbox format, need help.
- Message-ID: <1992Sep8.003555.22437@ntmtv>
- Originator: montasmm@nmtvs299
- Sender: news@ntmtv
- Nntp-Posting-Host: nmtvs299
- Reply-To: montasmm@ntmtv.UUCP (Medi Montaseri)
- Organization: Northern Telecom Inc, Mountain View, CA
- Distribution: ba
- Date: Tue, 8 Sep 1992 00:35:55 GMT
- Lines: 24
-
- Hello Earthians
-
- Objective:
- write a program to invoke another program when new mail has been received.
-
- Now we know, mailtool(1) in sun world sets a flag on its icon. I also
- know that some program writes a line like "You have new mail" to my
- tty. I think this is done by checking /var/spool/mail/some_file file,
- to see if there is any new mail. My question is how is this decision
- made. That is, is the size of the file checked, or the time and
- access, or the file is actually processed. If the file is proccessed
- then I think the field Status is checked. If so what are the possible
- values, I know it can be "O" or "OR".
-
- References are appreciated as well.
-
- Thanks
-
- Medi
-
- --
- Medi
- E_mail: ntmtv!montasmm@ames.arc.nasa.gov
-
-