9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: David Presotto <presotto@closedmind.org>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] rotating one's mbox
Date: Thu,  4 Sep 2003 10:40:02 -0400	[thread overview]
Message-ID: <c9042e65d40c645be81ff402b2eab47e@plan9.bell-labs.com> (raw)
In-Reply-To: <d6fb55e7d310d4373abc69ba3efc7d1e@juice.thebigchoice.com>

[-- Attachment #1: Type: text/plain, Size: 536 bytes --]

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.

[-- Attachment #2: Type: message/rfc822, Size: 1888 bytes --]

From: matt@proweb.co.uk
To: 9fans@cse.psu.edu
Subject: [9fans] rotating one's mbox
Date: Thu, 4 Sep 2003 11:33:24 -0400
Message-ID: <d6fb55e7d310d4373abc69ba3efc7d1e@juice.thebigchoice.com>

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

  reply	other threads:[~2003-09-04 14:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-04 15:33 matt
2003-09-04 14:40 ` David Presotto [this message]
2003-09-04 16:33   ` matt
2003-09-08  9:09     ` Douglas A. Gwyn
2003-09-04 15:51 ` Fco.J.Ballesteros
2003-09-05  1:32 ` boyd, rounin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c9042e65d40c645be81ff402b2eab47e@plan9.bell-labs.com \
    --to=presotto@closedmind.org \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).