* [9fans] Deleting mail
@ 2006-06-07 22:16 Rodolfo (kix)
2006-06-07 22:22 ` Brantley Coile
2006-06-08 12:04 ` rog
0 siblings, 2 replies; 11+ messages in thread
From: Rodolfo (kix) @ 2006-06-07 22:16 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 302 bytes --]
Hi!!!
I have my pop3 account with tooooo much old mail. I have the mail in
/mail/fs/mbox/* and I would like to delete it.
In acme (my beautifull editor ;-) ) I can mark the message as (deleted).
How I can delete the mail in rc? rm?
rm mbox/*/* ???
Thanks.
--
Rodolfo García "kix"
[-- Attachment #2: Type: text/html, Size: 369 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Deleting mail
2006-06-07 22:16 [9fans] Deleting mail Rodolfo (kix)
@ 2006-06-07 22:22 ` Brantley Coile
2006-06-07 22:36 ` Rodolfo (kix)
2006-06-08 12:04 ` rog
1 sibling, 1 reply; 11+ messages in thread
From: Brantley Coile @ 2006-06-07 22:22 UTC (permalink / raw)
To: 9fans
> Hi!!!
>
> I have my pop3 account with tooooo much old mail. I have the mail in
> /mail/fs/mbox/* and I would like to delete it.
>
> In acme (my beautifull editor ;-) ) I can mark the message as (deleted).
>
> How I can delete the mail in rc? rm?
>
> rm mbox/*/* ???
>
> Thanks.
>
> --
> Rodolfo García "kix"
chmod -l /mail/box/<usr>/mbox
>/mail/box/bwc/mbox
chmod +l /mail/box/<usr>/mbox
But it will delete ALL the messages.
Take a look at the contents of the mail file
and you will see that it's just a text file where
each message begins with a line /^From .*/.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Deleting mail
2006-06-07 22:22 ` Brantley Coile
@ 2006-06-07 22:36 ` Rodolfo (kix)
2006-06-07 22:37 ` geoff
2006-06-07 22:38 ` Brantley Coile
0 siblings, 2 replies; 11+ messages in thread
From: Rodolfo (kix) @ 2006-06-07 22:36 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 831 bytes --]
Umm
It do not erase the mail. Why I change the exclusive mode?
Thanks.
2006/6/8, Brantley Coile <brantley@coraid.com>:
>
> > Hi!!!
> >
> > I have my pop3 account with tooooo much old mail. I have the mail in
> > /mail/fs/mbox/* and I would like to delete it.
> >
> > In acme (my beautifull editor ;-) ) I can mark the message as (deleted).
> >
> > How I can delete the mail in rc? rm?
> >
> > rm mbox/*/* ???
> >
> > Thanks.
> >
> > --
> > Rodolfo García "kix"
>
> chmod -l /mail/box/<usr>/mbox
> >/mail/box/bwc/mbox
> chmod +l /mail/box/<usr>/mbox
>
> But it will delete ALL the messages.
> Take a look at the contents of the mail file
> and you will see that it's just a text file where
> each message begins with a line /^From .*/.
>
>
--
Rodolfo García "kix"
[-- Attachment #2: Type: text/html, Size: 1309 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Deleting mail
2006-06-07 22:36 ` Rodolfo (kix)
@ 2006-06-07 22:37 ` geoff
2006-06-07 22:39 ` Brantley Coile
2006-06-07 22:45 ` Rodolfo (kix)
2006-06-07 22:38 ` Brantley Coile
1 sibling, 2 replies; 11+ messages in thread
From: geoff @ 2006-06-07 22:37 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 51 bytes --]
You replaced `bwc' with $user or your login name?
[-- Attachment #2: Type: message/rfc822, Size: 5630 bytes --]
[-- Attachment #2.1.1: Type: text/plain, Size: 831 bytes --]
Umm
It do not erase the mail. Why I change the exclusive mode?
Thanks.
2006/6/8, Brantley Coile <brantley@coraid.com>:
>
> > Hi!!!
> >
> > I have my pop3 account with tooooo much old mail. I have the mail in
> > /mail/fs/mbox/* and I would like to delete it.
> >
> > In acme (my beautifull editor ;-) ) I can mark the message as (deleted).
> >
> > How I can delete the mail in rc? rm?
> >
> > rm mbox/*/* ???
> >
> > Thanks.
> >
> > --
> > Rodolfo García "kix"
>
> chmod -l /mail/box/<usr>/mbox
> >/mail/box/bwc/mbox
> chmod +l /mail/box/<usr>/mbox
>
> But it will delete ALL the messages.
> Take a look at the contents of the mail file
> and you will see that it's just a text file where
> each message begins with a line /^From .*/.
>
>
--
Rodolfo García "kix"
[-- Attachment #2.1.2: Type: text/html, Size: 1309 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Deleting mail
2006-06-07 22:37 ` geoff
@ 2006-06-07 22:39 ` Brantley Coile
2006-06-07 22:51 ` Rodolfo (kix)
2006-06-07 22:45 ` Rodolfo (kix)
1 sibling, 1 reply; 11+ messages in thread
From: Brantley Coile @ 2006-06-07 22:39 UTC (permalink / raw)
To: 9fans
> You replaced `bwc' with $user or your login name?
How many mistakes can I make in a single, short message. :)
(Should have thought of $user as well.)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Deleting mail
2006-06-07 22:37 ` geoff
2006-06-07 22:39 ` Brantley Coile
@ 2006-06-07 22:45 ` Rodolfo (kix)
1 sibling, 0 replies; 11+ messages in thread
From: Rodolfo (kix) @ 2006-06-07 22:45 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 1384 bytes --]
Yes,
and I make "cd /mail/box/kix", chmod -l mbox, > mbox, chmod +l ...
Then, I make "Get" in acme and the mail continues.
Thanks.
2006/6/8, geoff@collyer.net <geoff@collyer.net>:
>
>
>
> ---------- Mensaje reenviado ----------
> From: "Rodolfo (kix)" <rodolfogarciap@gmail.com>
> To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu>
> Date: Thu, 8 Jun 2006 00:36:33 +0200
> Subject: Re: [9fans] Deleting mail
> Umm
>
> It do not erase the mail. Why I change the exclusive mode?
>
> Thanks.
>
> 2006/6/8, Brantley Coile <brantley@coraid.com>:
> >
> > > Hi!!!
> > >
> > > I have my pop3 account with tooooo much old mail. I have the mail in
> > > /mail/fs/mbox/* and I would like to delete it.
> > >
> > > In acme (my beautifull editor ;-) ) I can mark the message as
> > (deleted).
> > >
> > > How I can delete the mail in rc? rm?
> > >
> > > rm mbox/*/* ???
> > >
> > > Thanks.
> > >
> > > --
> > > Rodolfo García "kix"
> >
> > chmod -l /mail/box/<usr>/mbox
> > >/mail/box/bwc/mbox
> > chmod +l /mail/box/<usr>/mbox
> >
> > But it will delete ALL the messages.
> > Take a look at the contents of the mail file
> > and you will see that it's just a text file where
> > each message begins with a line /^From .*/.
> >
> >
>
>
> --
> Rodolfo García "kix"
>
>
--
Rodolfo García "kix"
[-- Attachment #2: Type: text/html, Size: 2369 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Deleting mail
2006-06-07 22:36 ` Rodolfo (kix)
2006-06-07 22:37 ` geoff
@ 2006-06-07 22:38 ` Brantley Coile
1 sibling, 0 replies; 11+ messages in thread
From: Brantley Coile @ 2006-06-07 22:38 UTC (permalink / raw)
To: 9fans
> Umm
>
> It do not erase the mail. Why I change the exclusive mode?
>
> Thanks.
Man! Too late in the day to help. Change the append bit not the lock bit.
Dang! Sorry. That should read
> chmod -a /mail/box/<usr>/mbox
> >/mail/box/bwc/mbox
> chmod +a /mail/box/<usr>/mbox
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Deleting mail
2006-06-07 22:16 [9fans] Deleting mail Rodolfo (kix)
2006-06-07 22:22 ` Brantley Coile
@ 2006-06-08 12:04 ` rog
2006-06-08 17:28 ` Rodolfo (kix)
1 sibling, 1 reply; 11+ messages in thread
From: rog @ 2006-06-08 12:04 UTC (permalink / raw)
To: 9fans
> 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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] Deleting mail
2006-06-08 12:04 ` rog
@ 2006-06-08 17:28 ` Rodolfo (kix)
0 siblings, 0 replies; 11+ messages in thread
From: Rodolfo (kix) @ 2006-06-08 17:28 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 876 bytes --]
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/*
> 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
>
--
Rodolfo García "kix"
[-- Attachment #2: Type: text/html, Size: 1436 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2006-06-08 17:28 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-07 22:16 [9fans] Deleting mail 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
2006-06-08 17:28 ` Rodolfo (kix)
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).