From owner-freebsd-questions Wed May 15 8:31: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by hub.freebsd.org (Postfix) with ESMTP id 00C1337B400 for ; Wed, 15 May 2002 08:31:00 -0700 (PDT) Received: from SAGEONE (sageone [192.168.0.5]) by sage-one.net (8.11.6/8.11.6) with SMTP id g4FFUta15484; Wed, 15 May 2002 10:30:55 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20020515103052.0301aa40@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Wed, 15 May 2002 10:30:52 -0500 To: Jason Taylor , freebsd-questions@FreeBSD.ORG From: "Jack L. Stone" Subject: Re: Zapping Email Box In-Reply-To: <20020515150323.GC6657@uk2.kanda-systems.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 04:03 PM 5.15.2002 +0100, Jason Taylor wrote: >Forgot to cc to list. Sorry. > >Jason > >----- Forwarded message from Jason Taylor ----- > >Date: Wed, 15 May 2002 16:00:01 +0100 >From: Jason Taylor >To: "Jack L. Stone" >Subject: Re: Zapping Email Box >Reply-To: Jason Taylor >In-Reply-To: <3.0.5.32.20020515094741.0118be50@mail.sage-one.net> >User-Agent: Mutt/1.3.99i > >On Wed, May 15, 2002 at 09:47:41AM -0500, Jack L. Stone wrote: >> Running FBSD-4.5 RELEASE with sendmail-8.11.6 and Qpopper >> >> As part of a daily digest mailing at midnight, I have a cron job that >> copies a mailbox contents to a work file, then a script strips out the >> extra header "noise" and sends out the nice clean digest to its members. In >> order to cut off the mail box at precisely midnight, I have been "zapping" >> the email box to zero it out in order to start another day's collection of >> emails right after midnight. I use this command to "zap" the email box: >> #echo > mymailbox > >my mymailbox mymailbox.yesterday > >Then do your cleanout etc. on mymailbox.yesterday. > >That should be alot safer > >Jason ....but, I must zero out "mymailbox" exactly at 23.59.... that's the problem, not making a work copy. I already make a "work" copy like "mymailbox.yesterday" for doing the other processes. The problem is clearing out the original mymailbox.... .... our website: http://www.sage-one.net/ Best regards, Jack L. Stone Server Admin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message