9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Boyd Roberts" <boyd@fr.inter.net>
To: <9fans@cse.psu.edu>
Subject: Re: [9fans] Python filesystem
Date: Thu, 29 Nov 2001 08:10:43 +0100	[thread overview]
Message-ID: <055b01c178a4$f640dc20$b6f7c6d4@cybercable.fr> (raw)
In-Reply-To: <4150.1007015501@apnic.net>

> whats hellish about MH?

There is a fundemental design flaw in 'comp'.  When you quit the
editor it says (IIRC):

    What now?

Well this is just no good.  Composition and delivery should be
decoupled and you should be able to edit multiple messages at
once and deliver them at will.

This is what I mean:

#!/bin/sh

# dws [ box ] [ id ]
#
# die worthless spammer

myname="`basename \"$0\"`"
spam=+spam

case "`box`" in
$spam)
 echo "$myname: Replying to a spam in \"$spam\"?" 1>&2
 exit 1
 ;;
esac

case $# in
0|1|2)
 mov ${1+"$@"} "$spam" || exit $?
 ;;

*)
 echo "usage: $myname [ box ] [ id ]" 1>&2
 exit 1
 ;;
esac

box="`box`"

box "$spam" || exit $?

# construct reply
(
 EDITOR='sam -d' rep -i > /dev/null 2>&1 <<'!'
/^To:.*\n(    .*\n)+/
x/\n    /c/ /
/^To:.*\n/
.t.
x/[\-a-zA-Z0-9._&]+@/c/postmaster@/
/^To:.*\n/
/^To:.*\n/
s/^To:/Cc:/
,x/^Cc: \n/d
,x/^Bcc: \n/d
,x/^Subject: \n/d
1,/^\n/
a
die, worthless spammer.

postmaster: check out the Mail Abuse Protection System (MAPS)
     http://maps.vix.com

.
1,/^$/p
w
q
!
# log reply and deliver
) || exit 1

case "$myname" in
dws)
 echo "$myname: Spam returned to `msg | 822flatten | sed -e
^[TC][oc][  ]*:[  ]*/!d' -e 's///' | tr '\012' ' '`" 1>&2
 del && box "$box"
 ;;

rws)
 med
 ;;
esac

----

Unfortunately I just realised that I had broken the 'mace' bundle because
I put up the meta anti-spam RFC 822 header parser version that was still
in test.  Unfortunately the Received: headers have a context sensitive
grammar which yacc is not quite up to.

My plan was to walk the Received: headers and automatically copy
abuse/postmaster
at all the sites the spam had passed through.  When I have a spare
nanosecond
I will fix it, because I can't stand these broken GUI mailers.  Yes, I will
have
to deal with MIME, but I can creep up on that with a tools approach.

Une chose � la fois.




  reply	other threads:[~2001-11-29  7:10 UTC|newest]

Thread overview: 113+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-28 18:54 Russ Cox
2001-11-28 19:09 ` Matt
2001-11-28 21:46   ` Boyd Roberts
2001-11-29 12:24     ` Matt
2001-11-29  5:49   ` Lucio De Re
2001-11-29  6:30     ` Boyd Roberts
2001-11-29  6:31       ` George Michaelson
2001-11-29  7:10         ` Boyd Roberts [this message]
2001-11-29 11:26           ` Sam Holden
2001-12-06 16:56           ` Ralph Corderoy
2001-12-06 17:32             ` Boyd Roberts
2001-11-29 10:50       ` Lucio De Re
2001-11-29 11:06         ` Boyd Roberts
2001-12-06 15:59           ` Ralph Corderoy
2001-11-29  7:21     ` Skip Tavakkolian
2001-11-29  7:32       ` Steve Kilbane
2001-12-03 22:39         ` Laura Creighton
2001-12-07  9:36           ` Ralph Corderoy
2001-12-07 14:07             ` Laura Creighton
2001-11-29  7:37       ` Boyd Roberts
2001-11-29 11:10         ` Christopher Nielsen
2001-11-29 19:51         ` Skip Tavakkolian
2001-11-29 10:08     ` John Murdie
2001-11-29 10:37       ` Boyd Roberts
2001-11-29 12:03       ` Lucio De Re
  -- strict thread matches above, loose matches on Subject: below --
2001-12-08 19:58 Doug McIlroy
2001-11-30  0:11 geoff
2001-11-30  3:10 ` William Josephson
2001-11-29 23:07 geoff
2001-11-29 23:26 ` George Michaelson
2001-11-29 20:01 Russ Cox
2001-11-29 20:37 ` Dan Cross
2001-11-29 20:49   ` Boyd Roberts
2001-11-30 16:01     ` plan9
2001-12-01  4:44       ` Boyd Roberts
2001-11-29 14:49 Russ Cox
2001-11-29 19:28 ` Dan Cross
2001-11-29 20:02   ` Skip Tavakkolian
2001-11-29 20:05   ` Boyd Roberts
2001-11-29 10:23 rog
2001-11-29 10:54 ` Boyd Roberts
2001-11-28 20:36 David Gordon Hogan
2001-11-28 18:21 Russ Cox
2001-11-28 18:34 ` Matt
2001-11-28 18:18 Matt
2001-11-30  5:44 ` Quinn Dunkan
2001-11-09 22:26 [9fans] Rant (was Re: Plan9 and Ada95?) David Gordon Hogan
2001-11-10  0:10 ` William Josephson
2001-11-10  8:29   ` Matthew Hannigan
2001-11-10  8:39     ` Andrey A Mirtchovski
2001-11-11  1:38       ` Steve Kilbane
2001-11-11  3:34         ` Dan Cross
2001-11-11 11:20           ` Steve Kilbane
2001-11-11 17:30             ` Dan Cross
2001-11-12 10:42           ` Thomas Bushnell, BSG
2001-11-11  8:25         ` paurea
2001-11-11 17:31           ` Dan Cross
2001-09-21 14:04 [9fans] Plan 9 versus CORBA? Andrew Simmons
2001-09-21 14:25 ` andrey mirtchovski
2001-09-21 14:29   ` Ronald G Minnich
2001-09-21 15:16   ` Scott Schwartz
2001-09-21 14:28 ` Ronald G Minnich
2001-09-24  8:51   ` Andrew Simmons
2001-09-24 16:25     ` Boyd Roberts
2001-09-24 22:43       ` George Michaelson
2001-09-24 22:54         ` Boyd Roberts
2001-09-25  0:37           ` George Michaelson
2001-09-25  0:39             ` Boyd Roberts
2001-09-25  0:55               ` George Michaelson
2001-09-25  1:00                 ` Boyd Roberts
2001-09-25  0:42             ` Boyd Roberts
2001-09-25  0:56               ` George Michaelson
2001-09-25  1:00                 ` Boyd Roberts
2001-09-25  1:23                   ` Scott Schwartz
2001-09-25  2:27                     ` Dan Cross
2001-09-25  2:31                       ` Boyd Roberts
2001-09-25  2:12                   ` Dan Cross
2001-09-25  2:32                     ` William Josephson
2001-10-01  9:51     ` Mike Warner
2001-09-21 14:33 ` Alexander Viro
2001-07-10 10:32 [9fans] sam vs acme rog
2001-07-10 10:43 ` Lucio De Re
2001-07-18  8:43   ` David Rubin
2001-07-18 21:17     ` Boyd Roberts
2001-07-18 21:40       ` Scott Schwartz
2001-07-18 21:51         ` Boyd Roberts
2001-07-18 22:55           ` George Michaelson
2001-07-18 23:00             ` Scott Schwartz
2001-07-19 15:34               ` Samterm panic (was Re: [9fans] sam vs acme) suspect
2001-07-19 16:00                 ` Scott Schwartz
2001-07-20  8:54                 ` Douglas A. Gwyn
2001-07-19  0:00             ` [9fans] sam vs acme Boyd Roberts
2001-07-19  0:12             ` suspect
2001-07-19  0:14               ` Boyd Roberts
2001-07-20  8:54             ` Douglas A. Gwyn
2001-07-20  9:47               ` George Michaelson
2001-07-20 10:08                 ` Boyd Roberts
2001-07-20 16:44                   ` Ozan Yigit
2001-07-20 21:57                     ` Boyd Roberts
2001-07-10 16:04 ` [9fans] wily, acme, etc Ozan Yigit
2001-07-10 22:57 ` [9fans] sam vs acme Steve Kilbane
2001-07-10 23:23   ` Boyd Roberts
2001-07-11  6:55     ` Steve Kilbane
2001-07-11 13:24       ` Boyd Roberts
2001-07-11 21:20         ` Steve Kilbane
2001-07-12 10:36           ` Boyd Roberts
2001-07-12  8:31         ` Ozan Yigit
2001-07-12 10:38           ` Boyd Roberts
     [not found] <aam396@mail.usask.ca>
2001-06-24 23:04 ` andrey mirtchovski
2001-06-24 22:14   ` Matt
2001-06-24 22:33   ` Scott Schwartz
2001-06-25  3:41     ` Dan Cross
2001-06-28 22:58     ` Boyd Roberts

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='055b01c178a4$f640dc20$b6f7c6d4@cybercable.fr' \
    --to=boyd@fr.inter.net \
    --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).