From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <8ca73a0d8663a51f1c78d366e12c0960@vitanuova.com> Date: Thu, 8 Jun 2006 13:04:43 +0100 From: rog@vitanuova.com To: 9fans@cse.psu.edu Subject: Re: [9fans] Deleting mail In-Reply-To: <3096bd910606071516s4324759cy3d9cb1dcba044ca9@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 612ea992-ead1-11e9-9d60-3106f5b1d025 > In acme (my beautifull editor ;-) ) I can mark the message as (deleted). > > How I can delete the mail in rc? rm? > > rm mbox/*/* ??? actually, you can do that (although it'll be very slow): rm /mail/fs/mbox/* the slowness comes from the fact that it rewrites the entire mailbox after every remove. quicker would be: cd /mail/fs/mbox echo delete mbox * > ../ctl the advantage of doing this over just truncating the mailbox file is that you don't have to delete all the messages. for instance, you could delete the oldest 500 messages with cd /mail/fs/mbox echo delete mbox `{ls -n | sed 500q} > ../ctl