9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] delete mail from mailfs via script
@ 2007-05-18  7:32 Matthias Teege
  2007-05-18 14:00 ` Russ Cox
  0 siblings, 1 reply; 15+ messages in thread
From: Matthias Teege @ 2007-05-18  7:32 UTC (permalink / raw)
  To: 9fans

Moin,

I read my email with p9ps acme and mailfs and searching  for
a  possibility to delete mails via script. Would be nice if I can
"blacklist" some threads. There are a "ctl" and a "search" file in the
mbox but I don't know exactly how to use both.

How can I delete email from mailfs with a script?

Many thanks
Matthias



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] delete mail from mailfs via script
  2007-05-18  7:32 [9fans] delete mail from mailfs via script Matthias Teege
@ 2007-05-18 14:00 ` Russ Cox
  2007-05-18 14:20   ` erik quanstrom
                     ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Russ Cox @ 2007-05-18 14:00 UTC (permalink / raw)
  To: 9fans

> I read my email with p9ps acme and mailfs and searching  for
> a  possibility to delete mails via script. Would be nice if I can
> "blacklist" some threads. There are a "ctl" and a "search" file in the
> mbox but I don't know exactly how to use both.

The search file is unused (but implemented).
The idea is you write a search string
and read back a list of message ids.

The ctl file allows bulk deletion - you write
  delete 1 2 3 4 5
and it deletes the messages with those ids.

Russ



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] delete mail from mailfs via script
  2007-05-18 14:00 ` Russ Cox
@ 2007-05-18 14:20   ` erik quanstrom
  2007-05-21 22:48   ` Enrico Weigelt
  2007-05-23 16:24   ` ron minnich
  2 siblings, 0 replies; 15+ messages in thread
From: erik quanstrom @ 2007-05-18 14:20 UTC (permalink / raw)
  To: 9fans

pedantic note.

the search file is a p9p-only thing.  it is
not available on the plan 9 upas/fs.

- erik

> The search file is unused (but implemented).
> The idea is you write a search string
> and read back a list of message ids.
> 
> The ctl file allows bulk deletion - you write
>   delete 1 2 3 4 5
> and it deletes the messages with those ids.
> 
> Russ


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] delete mail from mailfs via script
  2007-05-18 14:00 ` Russ Cox
  2007-05-18 14:20   ` erik quanstrom
@ 2007-05-21 22:48   ` Enrico Weigelt
  2007-05-21 23:03     ` Russ Cox
  2007-05-23 16:24   ` ron minnich
  2 siblings, 1 reply; 15+ messages in thread
From: Enrico Weigelt @ 2007-05-21 22:48 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


Hi folks,

is there any paper on mailfs ? 
I'd like to know how it works - maybe its suited to be used
in cross-platform MUAs too.

cu
-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
---------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] delete mail from mailfs via script
  2007-05-21 22:48   ` Enrico Weigelt
@ 2007-05-21 23:03     ` Russ Cox
  2007-05-21 23:11       ` Felipe Bichued
  0 siblings, 1 reply; 15+ messages in thread
From: Russ Cox @ 2007-05-21 23:03 UTC (permalink / raw)
  To: weigelt, 9fans

> is there any paper on mailfs ? 
> I'd like to know how it works - maybe its suited to be used
> in cross-platform MUAs too.

Nope, just the source.  
http://swtch.com/usr/local/plan9/src/cmd/upas/nfs
It is IMAP-only right now and depends on factotum.

Mailfs is inspired by Plan 9's upas/fs, which is at
http://plan9.bell-labs.com/sources/plan9/sys/src/cmd/upas/fs/
and documented at
http://plan9.bell-labs.com/magic/man2html/4/upasfs

There are differences between the two interfaces but they
are pretty minor.  The implementations are very different
(mailfs is imap-backed and pages messages in on demand;
upas/fs can read from plan 9's local mail spools, pop3, and imap,
but it keeps the messages all in memory).

Russ



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] delete mail from mailfs via script
  2007-05-21 23:03     ` Russ Cox
@ 2007-05-21 23:11       ` Felipe Bichued
  0 siblings, 0 replies; 15+ messages in thread
From: Felipe Bichued @ 2007-05-21 23:11 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

This might be of interest:
http://plan9.bell-labs.com/sources/contrib/uriel/doc/background/upas.ps

I don't know how outdated it is though.

Regards.

Felipe

On 5/21/07, Russ Cox <rsc@swtch.com> wrote:
> > is there any paper on mailfs ?
> > I'd like to know how it works - maybe its suited to be used
> > in cross-platform MUAs too.
>
> Nope, just the source.
> http://swtch.com/usr/local/plan9/src/cmd/upas/nfs
> It is IMAP-only right now and depends on factotum.
>
> Mailfs is inspired by Plan 9's upas/fs, which is at
> http://plan9.bell-labs.com/sources/plan9/sys/src/cmd/upas/fs/
> and documented at
> http://plan9.bell-labs.com/magic/man2html/4/upasfs
>
> There are differences between the two interfaces but they
> are pretty minor.  The implementations are very different
> (mailfs is imap-backed and pages messages in on demand;
> upas/fs can read from plan 9's local mail spools, pop3, and imap,
> but it keeps the messages all in memory).
>
> Russ
>
>


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] delete mail from mailfs via script
  2007-05-18 14:00 ` Russ Cox
  2007-05-18 14:20   ` erik quanstrom
  2007-05-21 22:48   ` Enrico Weigelt
@ 2007-05-23 16:24   ` ron minnich
  2007-05-23 16:50     ` Russ Cox
  2007-05-23 18:03     ` David Leimbach
  2 siblings, 2 replies; 15+ messages in thread
From: ron minnich @ 2007-05-23 16:24 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 5/18/07, Russ Cox <rsc@swtch.com> wrote:
> > I read my email with p9ps acme and mailfs and searching  for
> > a  possibility to delete mails via script. Would be nice if I can
> > "blacklist" some threads. There are a "ctl" and a "search" file in the
> > mbox but I don't know exactly how to use both.
>
> The search file is unused (but implemented).
> The idea is you write a search string
> and read back a list of message ids.

so, I was messing around in acme mail, and wanted to try something like this:
Edit X/1-800-FLOWERS/d
I.e. blow messages away from those guys, but I never got it to quite
work. What am I missing?

thanks

ron


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] delete mail from mailfs via script
  2007-05-23 16:24   ` ron minnich
@ 2007-05-23 16:50     ` Russ Cox
  2007-05-23 16:53       ` ron minnich
  2007-05-23 18:03     ` David Leimbach
  1 sibling, 1 reply; 15+ messages in thread
From: Russ Cox @ 2007-05-23 16:50 UTC (permalink / raw)
  To: 9fans

> Edit X/1-800-FLOWERS/d
> I.e. blow messages away from those guys, but I never got it to quite
> work. What am I missing?

It would be nice if that worked, but 
acme's mail window is not directly 
editable.  Just like editing the subject
text doesn't change the subject in
the underlying message.

You can always use plain mail to do
that - g%1-800-FLOWERS%d

Russ



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] delete mail from mailfs via script
  2007-05-23 16:50     ` Russ Cox
@ 2007-05-23 16:53       ` ron minnich
  2007-05-23 16:58         ` Russ Cox
  2007-05-23 17:02         ` Skip Tavakkolian
  0 siblings, 2 replies; 15+ messages in thread
From: ron minnich @ 2007-05-23 16:53 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 5/23/07, Russ Cox <rsc@swtch.com> wrote:
> > Edit X/1-800-FLOWERS/d
> > I.e. blow messages away from those guys, but I never got it to quite
> > work. What am I missing?
>
> It would be nice if that worked, but
> acme's mail window is not directly
> editable.

Right, I said this incorrectly anyway. How to get something like this:
Edit X/1-800-FLOWERS/Delmsg
Since Delmsg is not really an acme command, I assume won't work -- I
tried it anyway.

I want the effect of mixing up acme commands with the process attached
to the window (no, I'm not sure I said that correctly).

thanks

ron


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] delete mail from mailfs via script
  2007-05-23 16:53       ` ron minnich
@ 2007-05-23 16:58         ` Russ Cox
  2007-05-23 17:04           ` Sape Mullender
  2007-05-23 17:07           ` Skip Tavakkolian
  2007-05-23 17:02         ` Skip Tavakkolian
  1 sibling, 2 replies; 15+ messages in thread
From: Russ Cox @ 2007-05-23 16:58 UTC (permalink / raw)
  To: 9fans

> Right, I said this incorrectly anyway. How to get something like this:
> Edit X/1-800-FLOWERS/Delmsg
> Since Delmsg is not really an acme command, I assume won't work -- I
> tried it anyway.
> 
> I want the effect of mixing up acme commands with the process attached
> to the window (no, I'm not sure I said that correctly).

That's kind of interesting.  It might not be hard to make

Edit x/.*\n(	.*\n)+/ g/flowers/ * Delmesg

work (where * is a new command meaning
execute like button 2).  But that isn't implemented
right now.

Russ



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] delete mail from mailfs via script
  2007-05-23 16:53       ` ron minnich
  2007-05-23 16:58         ` Russ Cox
@ 2007-05-23 17:02         ` Skip Tavakkolian
  1 sibling, 0 replies; 15+ messages in thread
From: Skip Tavakkolian @ 2007-05-23 17:02 UTC (permalink / raw)
  To: 9fans

>> > Edit X/1-800-FLOWERS/d
>> > I.e. blow messages away from those guys, but I never got it to quite
>> > work. What am I missing?
>>
>> It would be nice if that worked, but
>> acme's mail window is not directly
>> editable.
> 
> Right, I said this incorrectly anyway. How to get something like this:
> Edit X/1-800-FLOWERS/Delmsg
> Since Delmsg is not really an acme command, I assume won't work -- I
> tried it anyway.
> 
> I want the effect of mixing up acme commands with the process attached
> to the window (no, I'm not sure I said that correctly).

something that might make Delmesg more useful with "Look", is if Delmesg
tried to match /(^[0-9]+)/ in the current line when called.



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] delete mail from mailfs via script
  2007-05-23 16:58         ` Russ Cox
@ 2007-05-23 17:04           ` Sape Mullender
  2007-05-23 17:07           ` Skip Tavakkolian
  1 sibling, 0 replies; 15+ messages in thread
From: Sape Mullender @ 2007-05-23 17:04 UTC (permalink / raw)
  To: 9fans

> It might not be hard to make
> 
> Edit x/.*\n(	.*\n)+/ g/flowers/ * Delmesg
> 
> work (where * is a new command meaning
> execute like button 2).  But that isn't implemented
> right now.

That would be very useful for a number of things — nice idea.

	Sape



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] delete mail from mailfs via script
  2007-05-23 16:58         ` Russ Cox
  2007-05-23 17:04           ` Sape Mullender
@ 2007-05-23 17:07           ` Skip Tavakkolian
  2007-05-23 18:05             ` David Leimbach
  1 sibling, 1 reply; 15+ messages in thread
From: Skip Tavakkolian @ 2007-05-23 17:07 UTC (permalink / raw)
  To: 9fans

> work (where * is a new command meaning
> execute like button 2).  But that isn't implemented
> right now.

that's really interesting, it could be a general macro
facility. 



^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] delete mail from mailfs via script
  2007-05-23 16:24   ` ron minnich
  2007-05-23 16:50     ` Russ Cox
@ 2007-05-23 18:03     ` David Leimbach
  1 sibling, 0 replies; 15+ messages in thread
From: David Leimbach @ 2007-05-23 18:03 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 5/23/07, ron minnich <rminnich@gmail.com> wrote:
> On 5/18/07, Russ Cox <rsc@swtch.com> wrote:
> > > I read my email with p9ps acme and mailfs and searching  for
> > > a  possibility to delete mails via script. Would be nice if I can
> > > "blacklist" some threads. There are a "ctl" and a "search" file in the
> > > mbox but I don't know exactly how to use both.
> >
> > The search file is unused (but implemented).
> > The idea is you write a search string
> > and read back a list of message ids.
>
> so, I was messing around in acme mail, and wanted to try something like this:
> Edit X/1-800-FLOWERS/d
> I.e. blow messages away from those guys, but I never got it to quite
> work. What am I missing?
>
> thanks
>
> ron
>
What do you have against flowers?  :-)


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [9fans] delete mail from mailfs via script
  2007-05-23 17:07           ` Skip Tavakkolian
@ 2007-05-23 18:05             ` David Leimbach
  0 siblings, 0 replies; 15+ messages in thread
From: David Leimbach @ 2007-05-23 18:05 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

On 5/23/07, Skip Tavakkolian <9nut@9netics.com> wrote:
> > work (where * is a new command meaning
> > execute like button 2).  But that isn't implemented
> > right now.
>
> that's really interesting, it could be a general macro
> facility.
>
>

Indeed, I'd love a feature like that.


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-05-23 18:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-18  7:32 [9fans] delete mail from mailfs via script Matthias Teege
2007-05-18 14:00 ` Russ Cox
2007-05-18 14:20   ` erik quanstrom
2007-05-21 22:48   ` Enrico Weigelt
2007-05-21 23:03     ` Russ Cox
2007-05-21 23:11       ` Felipe Bichued
2007-05-23 16:24   ` ron minnich
2007-05-23 16:50     ` Russ Cox
2007-05-23 16:53       ` ron minnich
2007-05-23 16:58         ` Russ Cox
2007-05-23 17:04           ` Sape Mullender
2007-05-23 17:07           ` Skip Tavakkolian
2007-05-23 18:05             ` David Leimbach
2007-05-23 17:02         ` Skip Tavakkolian
2007-05-23 18:03     ` David Leimbach

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).