Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!oliveb!orc!inews!kseshadr@quasar.intel.com From: kseshadr@quasar.intel.com (Kishore Seshadri) Newsgroups: comp.unix.questions Subject: Re: Programmatic Mail reader Message-ID: <2596@inews.intel.com> Date: 26 Jul 90 21:06:05 GMT References: <1990Jul26.155303.15563@mips2.cr.bull.com> Sender: news@inews.intel.com Reply-To: kseshadr@quasar.intel.com (Kishore Seshadri) Organization: Intel Corporation, Santa Clara, California Lines: 24 In-reply-to: peters@mips2.cr.bull.com (Dan Peters) In article <1990Jul26.155303.15563@mips2.cr.bull.com>, peters@mips2 (Dan Peters) writes: > > This is my first post to this newsgroup, I hope it is appropriate. >What is the easiest way to programmaticly do the following: > > read mail, > dump it to a file (i.e. log) > delete the messages read (so they arn't logged again), > quit mail > > >I have tried to programmaticly read mail with MAILX on a Hewlett Packard >machine running HP-UX (BSD 4.3 based i believe) with the following .mailrc I know nothing whatsoever about HP/UX but using Berkeley mail you can direct your mail to a file using the .forward file mechanism. If this works on your system it may be a viable solution. Kishore Seshadri =============================================================================== Kishore Seshadri (Speaking for myself) Intel Corp., Santa Clara, CA CSNET: kseshadr@mipos3.intel.com ARPA: kseshadr%mipos3.intel.com@relay.cs.net UUCP:{amdcad,decwrl,hplabs,oliveb,pur-ee,qantel}!intelca!mipos3!kseshadr