procmail
[Top] [All Lists]

Re: Removing mail footers

2003-02-22 01:49:19
On Thursday, Feb 20, 2003, at 18:41 Canada/Mountain, Tyler F. Creelan wrote:
Hi folks -

I found this recipe for removing those ads from sourceforge list
emails:

:0 w: # filter sf.net footers
* SENDER ?? ()\/(autopilot|acpi|asdp)-devel-admin(_at_)lists\(_dot_)sourceforge\(_dot_)net
* MATCH ?? ^^\/[^-]+
| perl -e 'while (<>) {$i++ if /this sf.net email/i; print unless $i}' >>$MATCH

does anyone have something similar for yahoo groups/MSN ?

I use a recipe more like this:

  :0fbW
  * ^List-Help:(.*\<).*topica.com/lists/
     | sed -e '/^==\^====/,/^==\^====/d'


to strip unwanted cruft from messages. This one is for Topica lists, and merely deletes all the lines from:

(anything)^==^===(anything)
to
(anything)^==^===(anything)


--
"Hi Dad!  It's 3am, do you know where I am?"


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

<Prev in Thread] Current Thread [Next in Thread>