From owner-freebsd-questions Wed May 15 9: 9:56 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 83CF137B401 for ; Wed, 15 May 2002 09:09:50 -0700 (PDT) Received: from SAGEONE (sageone [192.168.0.5]) by sage-one.net (8.11.6/8.11.6) with SMTP id g4FG9la15874; Wed, 15 May 2002 11:09:47 -0500 (CDT) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20020515110945.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 11:09:45 -0500 To: Jason Taylor From: "Jack L. Stone" Subject: Re: Zapping Email Box Cc: freebsd-questions@freebsd.org In-Reply-To: <20020515155648.GE6657@uk2.kanda-systems.net> References: <3.0.5.32.20020515103052.0301aa40@mail.sage-one.net> <20020515150323.GC6657@uk2.kanda-systems.net> <3.0.5.32.20020515103052.0301aa40@mail.sage-one.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:56 PM 5.15.2002 +0100, Jason Taylor wrote: >On Wed, May 15, 2002 at 10:30:52AM -0500, Jack L. Stone wrote: >> > >> >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.... > >Ok then: > >mv mailbox mailbox.yesterday && touch mailbox > >Jason > ...no, "touch" is no different (or better) than my using "echo ." which also zeros out the mailbox... both will do that, BUT, the concern is only that if the cron job is using echo or touch to zero out the mailbox at a random moment when mail is going through, it could corrupt the box... that's the concern.... zeroing out (zap) is not the problem..... To be real safe, I could load an email client right after the 23.59 "zap", but that might not be reliable as it must be done before 00.00, so it only has a 1-minute time frame to clear out the box.... .... 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