9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: rog@vitanuova.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Deleting mail
Date: Thu,  8 Jun 2006 13:04:43 +0100	[thread overview]
Message-ID: <8ca73a0d8663a51f1c78d366e12c0960@vitanuova.com> (raw)
In-Reply-To: <3096bd910606071516s4324759cy3d9cb1dcba044ca9@mail.gmail.com>

> 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


  parent reply	other threads:[~2006-06-08 12:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-07 22:16 Rodolfo (kix)
2006-06-07 22:22 ` Brantley Coile
2006-06-07 22:36   ` Rodolfo (kix)
2006-06-07 22:37     ` geoff
2006-06-07 22:39       ` Brantley Coile
2006-06-07 22:51         ` Rodolfo (kix)
2006-06-07 22:54           ` geoff
2006-06-07 22:45       ` Rodolfo (kix)
2006-06-07 22:38     ` Brantley Coile
2006-06-08 12:04 ` rog [this message]
2006-06-08 17:28   ` Rodolfo (kix)

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=8ca73a0d8663a51f1c78d366e12c0960@vitanuova.com \
    --to=rog@vitanuova.com \
    --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).