From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: David Presotto To: 9fans@cse.psu.edu Subject: Re: [9fans] rotating one's mbox In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-sgkehuqlnusjqlftluaxcutlju" Date: Thu, 4 Sep 2003 10:40:02 -0400 Topicbox-Message-UUID: 2cbcee58-eacc-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-sgkehuqlnusjqlftluaxcutlju Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit yes. what exactly are you trying to do, i.e., why rotate your mailbox. You'ld be better off with a pipeto that just sticks your mail into a mailbox of the correct date in the first place. Or you could just run upas/fs and copy the raw files out into a mailbox and then remove them. Something like: upas/fs cd /mail/fs/mbox x=`{echo *} > /whatever/mbox.$datum for(i in $x){ { cat $i/unixheader; cat $i/raw; echo }>>/whatever/mbox.$datum echo delete $i > /mail/fs/ctl } Then at least you're safe, so to speak. --upas-sgkehuqlnusjqlftluaxcutlju Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Thu Sep 4 10:32:39 EDT 2003 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Thu Sep 4 10:32:36 EDT 2003 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 34C9819C2E; Thu, 4 Sep 2003 10:32:20 -0400 (EDT) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.76.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 2B49C19A26; Thu, 4 Sep 2003 10:32:16 -0400 (EDT) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 7492F19A32; Thu, 4 Sep 2003 10:32:00 -0400 (EDT) Received: from tiger.punx (pc1-nott2-3-cust18.nott.cable.ntl.com [80.4.204.18]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id D3A1719A26 for <9fans@cse.psu.edu>; Thu, 4 Sep 2003 10:31:54 -0400 (EDT) Message-ID: To: 9fans@cse.psu.edu From: matt@proweb.co.uk Subject: [9fans] rotating one's mbox Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Thu, 4 Sep 2003 11:33:24 -0400 X-Spam-Status: No, hits=0.8 required=5.0 tests=NO_REAL_NAME version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) is it worth worrying about the tiny window of opportunity for a mail to arrive while I have no mailbox? cd /mail/box/$user/ datum = `{cat /dev/time | awk ' { print $1}'} mv mbox mbox.$datum # a mail could arrive now upas/nedmail -c chmod -al mbox.$datum And : is the strategy for people running dump any different? Matt --upas-sgkehuqlnusjqlftluaxcutlju--