#!/bin/sed -f # yahoogroups-kill-sig.sed by Aurelio Marinho Jargas # # Erases the Yahoo! Groups e-mail signature ad # # CHANGELOG: # 20000??? v0.1 First one # 20000725 v0.2 Now it has BEGIN/END marks, it's easier! # 20000906 v0.3 Marks changed # 20001107 v0.3.1 Contrib: Schlemer HTML killer # ----- eGroups has changed to Yahoo! Groups ----- # 20010206 v0.4 Contrib: Morcego's s/egroups/yahoo/s fix # 20010716 v0.5 Marks changed again # 20030428 v0.6 Policy Terms and Unsubscribe killers included # 20030506 v0.6.1 One-char fix on the Policy killer, added SAMPLE DATA # # DESCRIPTION: # Yahoogroups.com puts advertises on every sent message to the free groups. # This file is a sed filter to erase it. It handles quoted '> ' ads also. # If you do use procmail to filter e-mail messages, use this sed to # automaticaly remove the Ads for every message you receive. # # HOW TO USE: # Save this file on the disk and put at the begin of your ~/.procmailrc: # :0 fhw # * Delivered-To:.*@yahoogroups.com # | sed -f /path/to/yahoogroups-kill-sig.sed # # If preferred, make this file executable (chmod +x), put it in your PATH and: # :0 fhw # * Delivered-To:.*@yahoogroups.com # | yahoogroups-kill-sig.sed # # # SAMPLE DATA FILE: # You can use this sample data file to test these rules "by hand", # before including them on the procmail file. # Save the following fake e-mail message on a 'data.txt' file # (remove the leading # chars!) and run: # # prompt$ sed -f yahoogroups-kill-sig.sed data.txt # # All the Ads and Yahoo! messages should be removed. # #---------------------------8<--------------------------- #From: foo@foo.com #To: foo@foo.com #Subject: test me # #Here's the message body. #And now, the evil sig. # #------------------------ Yahoo! Groups Sponsor ---------------------~--> #Secure your servers with 128-bit SSL encryption! Grab your copy of #VeriSign's FREE Guide "Securing Your Web Site for Business." Get it now! #http://www.verisign.com/cgi-bin/go.cgi?a=n094442340008000 #http://us.click.yahoo.com/6lIgYB/IWxCAA/yigFAA/dkFolB/TM #---------------------------------------------------------------------~-> # #Your use of Yahoo! Groups is subject to #http://docs.yahoo.com/info/terms/ # #To unsubscribe from this group, send an email to: #foo-unsubscribe@yahoogroups.com #--------------------------->8--------------------------- #------------------------------------------------------------------------- # +----+ # | Ad | # +----+ # # Ad details: * a line w/ 24 hifens, 'Yahoo...Sponsor', 21 hifens and '~-->' # * lines with yahoogroups propaganda # * a line with 69 hifens, and '~->' at the end # Ad Sample: # ------------------------ Yahoo! Groups Sponsor ---------------------~--> # Secure your servers with 128-bit SSL encryption! Grab your copy of # VeriSign's FREE Guide "Securing Your Web Site for Business." Get it now! # http://www.verisign.com/cgi-bin/go.cgi?a=n094442340008000 # http://us.click.yahoo.com/6lIgYB/IWxCAA/yigFAA/dkFolB/TM # ---------------------------------------------------------------------~-> # # Ad Killer: /^\(> \)*-\{24\} Yahoo! Groups Sponsor -\{21\}~-->$/,/^\(> \)*-\{69\}~->$/d #------------------------------------------------------------------------- # +--------+ # | Policy | # +--------+ # # You can also remove the Policy Terms message. # # Policy Details: A one line message, sometimes broken into two, # which appears at the very end of the message. # Policy Sample: # Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ # # Policy Killer: /^\(> \)*Your use of Yahoo! Groups is subject to *$/N /^\(> \)*Your use of Yahoo! Groups is subject to/d #------------------------------------------------------------------------- # +-------------+ # | Unsubscribe | # +-------------+ # # This one is to remove the *default* unsubscribe footer. # # Unsubscribe Details: A one line message, sometimes broken into two, # which appears before the Ads. # Unsubscribe Sample: # To unsubscribe from this group, send an email to: # foo-unsubscribe@yahoogroups.com # # Unsubscribe Killer: /^\(> \)*To unsubscribe from this group, send an email to: *$/N /^\(> \)*To unsubscribe from this group, send an email to:/d #------------------------------------------------------------------------- # +---------+ # | Ad HTML | # +---------+ # # For those who receive the Yahoo! messages in HTML (argh!), you may use # this one also, because the HTML signature is way different. # # Ad Details: * an HTML comment with bar-star-star-bar,text,bar-star-star-bar # * lines with egroups propaganda # * an HTML comment with bar-star-star-bar,text,bar-star-star-bar # Ad Sample: # # #