procmail
[Top] [All Lists]

Re: How to filter this kind of message?

1999-10-22 10:16:03
Dominic:

On Thu, 21 Oct 1999, Dominic Mitchell wrote:
DM-> 
DM-> I have been receiving messages ( see below ) where the body is
DM-> just full of strings with a combination of '=' capital letters
DM-> and numbers.  I would like to filter out but I am not sure how to
DM-> do it.  Any help is very appreciated.
DM-> 
DM-> This is what I have in the body of the messages:
DM-> 
DM-> C7=D7=B0=AE=B5=C4=C5=F3=D3=D1=A3=BA
DM-> 
DM-> =C4=FA=CF=EB=D3=B5=D3=D0=D7=D4=BC=BA=B5=C4=B9=FA=BC=CA=B6=A5=BC=B6=D3=F2=
DM-> =C3=FB=C2=F0=A3=BF

I would pipe it through a perl script.

MYBIN = /usr/home/matt/bin
:0bfw
* ^From: whoever(_at_)nowhere\(_dot_)com
| $MYBIN/filt.pl

filt.pl:
#!/usr/bin/perl -w

@elements;
while (<STDIN>)
{
  chomp( $_ );
  @temp = split( /=/, $_ );
  foreach $element (@temp)
  {
        push( @elements, $element );
  }
}
# do whatever you want with them

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