From owner-freebsd-questions Wed May 15 7:48: 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 06D0137B41D for ; Wed, 15 May 2002 07:47:47 -0700 (PDT) Received: from SAGEONE (sageone [192.168.0.5]) by sage-one.net (8.11.6/8.11.6) with SMTP id g4FElha14931 for ; Wed, 15 May 2002 09:47:44 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20020515094741.0118be50@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 09:47:41 -0500 To: freebsd-questions@freebsd.org From: "Jack L. Stone" Subject: Zapping Email Box 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 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 What always worries me is that one of these times, the zap will be made at a time when the box is "active" with mail throughput and I may break or corrupt something. I know I could launch an email client to download the box to empty it, but that adds another possible variable to break the routine and not clean out the box timely.... the cron time is set at exactly 23.59 so there is only that 1 minute to do the zapping or cleanout of the box. Any ideas about a better way to zero the email box than what I have described...???? Thanks.... .... 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