From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3096bd910606081028g6f569aa4w1e0e2bace2b876@mail.gmail.com> Date: Thu, 8 Jun 2006 19:28:51 +0200 From: "Rodolfo (kix)" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Deleting mail In-Reply-To: <8ca73a0d8663a51f1c78d366e12c0960@vitanuova.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_25441_19642624.1149787731729" References: <3096bd910606071516s4324759cy3d9cb1dcba044ca9@mail.gmail.com> <8ca73a0d8663a51f1c78d366e12c0960@vitanuova.com> Topicbox-Message-UUID: 61f6b428-ead1-11e9-9d60-3106f5b1d025 ------=_Part_25441_19642624.1149787731729 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks rog, now I have a "new" pop3 account. Thank you very much. 2006/6/8, rog@vitanuova.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 > --=20 Rodolfo Garc=EDa "kix" ------=_Part_25441_19642624.1149787731729 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Thanks rog,

now I have a "new" pop3 account.

Thank you very much.


2006/6/8, rog@vitanuova.com <rog@vitanuova.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/*
t= he slowness comes from the fact that it rewrites the entire
mailbox afte= r every remove.

quicker would be:

    &nb= sp;   cd /mail/fs/mbox
     &nbs= p;  echo delete mbox * > ../ctl

the advantage of doing this over just truncating the mailbox
fil= e is that you don't have to delete all the messages.
for instance, you c= ould delete the oldest 500 messages with

    &nb= sp;   cd /mail/fs/mbox
        echo delete mbox `{ls -= n | sed 500q} > ../ctl



-= -
Rodolfo Garc=EDa "kix" ------=_Part_25441_19642624.1149787731729--