Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!agate!helios.ee.lbl.gov!ace.ee.lbl.gov!leres From: leres@ace.ee.lbl.gov (Craig Leres) Newsgroups: comp.mail.mh Subject: Re: Bug report: in "inc", the '-silent' and '-audit' switches clash Message-ID: <4436@helios.ee.lbl.gov> Date: 11 Dec 89 09:02:56 GMT References: <4784@arisia.Xerox.COM> Sender: usenet@helios.ee.lbl.gov Reply-To: leres@helios.ee.lbl.gov (Craig Leres) Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 13 X-Local-Date: 11 Dec 89 01:02:56 PST Brent Chapman writes: > The "-silent" switch tells "inc" NOT to show me a line for each message > as it processes my mailbox; this is all well and good. The "-silent" > switch ALSO apparently suppresses the output to my audit file, though; This is pretty easy to fix. I think the most straight forward method is to add an "aud" argument to scan(). If it's non-zero, it's a FILE pointer to put scan lines onto. Basically, all you have to do is move two lines from inc.c into scansbr.c, pass the aud variable in to scan() from inc, and then modify the other sources that use scan() (mshcmds.c and rcvtty.c) to pass a zero in for the new argument. Craig