Xref: utzoo comp.mail.misc:2297 comp.unix.xenix:7241 Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!newstop!sun!eureka!argv From: argv%eureka@Sun.COM (Dan Heller) Newsgroups: comp.mail.misc,comp.unix.xenix Subject: Re: Checking for new mail Message-ID: <122936@sun.Eng.Sun.COM> Date: 22 Aug 89 05:28:18 GMT References: <105@csnz.co.nz> <122772@sun.Eng.Sun.COM> <2847@ur-cc.UUCP> Sender: news@sun.Eng.Sun.COM Reply-To: argv@sun.UUCP (Dan Heller) Lines: 17 In article <2847@ur-cc.UUCP> Mark Sirota writes: > In article <122772@sun.Eng.Sun.COM> argv@sun.UUCP (Dan Heller) writes: > >In article <105@csnz.co.nz> paul@csnz.co.nz (Paul Gillingwater) writes: > >> What's the best way to check for the arrival of new mail? > >> I'm writing in C using SCO Xenix 2.3.1, but no doubt other approaches > >> Any ideas? Code fragments would be appreciated.... > > > > So, I wrote a program called "watch" which watches your mailbox and, > Similarly, I wrote a program which you call from your .forward file The reason that I didn't choose to do it this way is because there are some MTAs on smaller machines that don't recognize .forward. watch is more portable because it doesn't have this dependency. dan ----- My postings reflect my opinion only -- not the opinion of any company.