procmail
[Top] [All Lists]

Re: deleting mailing list footer

2002-08-05 01:25:12
  On Aug 05 at 00:57, Brad Forschinger spoke:

On Sun, Aug 04, 2002 at 04:32:14PM +0300, Udi Mottelo wrote:
    Something like this?

sed -e '/./{H;$!d;}' -e 'x;/unsubscribe from this/d;/Yahoo/d'

That grabs anything with "unsubscribe from this" though, so if someone
replies with that in the body; goodbye body!

As of procmail I seem to have found a sed script:

/^_____________________/{
N;N;N;N
/___\nprocmail mailing 
list\nprocmail(_at_)lists(_dot_)*\nhttp:.*listinfo.procmail\n/{
N
/\n.*\n.*\n.*\n.*\n/p
d
}
}

It will need to be adapted to other mailing lists.

-Hanspeter
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail