-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Hi,
> When my G/F sends me emails from work there is a disclaimer at the
> bottom that is starting to annoy me. It is always contained between
> rows of asterisks like this:
> *****...***** (there is 80 of them)
> lines
> of
> boring
> text
> *****...***** (80 of these too)
> I would like to make a procmail rule to rid me of these messages but
> don't have a clue how to do it. I can do the procmail stuff, it's the
> shell bit I don't have a clue with!
> How could I remove this block of text?
> Thanks allot
> Phil Jackson
I don't know about you, but I'd do it in perl:
#!/usr/bin/perl -w
use strict;
use diagnostics;
while (my $line = <>){
if($line =~ /[*]{80}/){
exit 0;
}
print $line;
Quote:}
Pipe the message in, it'll output until the first line containing 80
asterisks.
- --
Replace spamtrap with bd to reply.
QOTD:
"I used to be an idealist, but I got mugged by reality."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+PB31x533NjVSos4RAjXQAKCR2QaFn4ZCe+R5f82s5VccfmI5awCglUaA
EZkAztJyQ6yQyvjZZOOwcL0=
=k2mQ
-----END PGP SIGNATURE-----