[svlug] need a procmail recipie
Tin Le
tin at le.org
Tue Aug 29 16:22:02 PDT 2000
-----BEGIN PGP SIGNED MESSAGE-----
> Anyone know of or have a procmail filter that can remove parts of an email
> message? I belong to this eGroups list, and those bastards are slapping an
> advertisement at the TOP of every message.
> The spam is of the form:
> -------------------------- eGroups Sponsor -------------------------~-~>
> BLAH BLAH BLAH BLAH BLAH
> buy our shit
> http:/someurl.com
> ---------------------------------------------------------------------_->
> always, but with three or four lines in between the ---- parts.
> How can I have procmail search and replace that chunk with nothing?
Try something like this in your .procmailrc
:0 B fw
* ^---+ eGroups Sponsor ---+$
| sed -e '/^---+ eGroups Sponsor ---+$/,/^---+$/d'
It's a quick hack, so you may want to adjust it.
Tin Le
- ----
http://tin.le.org
Tin Le - tin at le.org
Firewall and Security Consulting
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2i
iQCVAgUBOaxGEBiIIbPkDHhBAQG+kwQAyeOcMOEab3Y1G+Patt6wg25eGMXpPcAu
3mjrLkfH6pQ9mvshbf04RfVYnb4SFJCbyzPzSWtUBdZPb0EAYcMYfaqbR3OS0iW4
MWKk5+TZmmGpcTrV7ZoXSU2DrlgIWQKtik2Ty/jsIB6gK6kBIzijKqy8+0ZnYEWP
N6YAOWFsiNE=
=UsRt
-----END PGP SIGNATURE-----
More information about the svlug
mailing list