[plug] Mail Filtering

I am the LinuxAlien linuxalien at optusnet.com.au
Wed Aug 28 16:06:24 WST 2002


It doesn't really matter for what i'm doing
Tim
At 16:04 28/08/2002 +0800, you wrote:
>How does such a procmail script confirm that the message REALLY came from
>callen at corpus.wa.edu.au?
>
>Anyone can send an email claiming that address.  If it doesn't have any
>wacky-doo way of checking the sender, is putting some kind of 'secret' line
>in the file and not parsing if it isn't found a good idea?  Or parse the
>headers for the originating ip/hostname/etc (that has even more short-falls
>though).
>
>(I have no knowledge of procmail)
>
>Ryan
>
>----- Original Message -----
>From: "I am the LinuxAlien" <linuxalien at optusnet.com.au>
>To: <plug at plug.linux.org.au>
>Sent: Wednesday, August 28, 2002 3:26 PM
>Subject: [plug] Mail Filtering
>
>
> > Ok, some time back I asked for help getting an  email to replace a file in
> > my public-html folder. The solution is below.
> > -------------------------------------
> > #!/usr/bin/perl
> >
> > #read the _whole_ file from stdin into $_;
> > undef $/;
> > $_=<STDIN>;
> >
> > #get rid of the email headers
> > # headers are seperated from the body of the message by a blank line.
> > s/^.*?\n\n//gs;
> >
> > open(DATA, ">public_html/registered_names.txt") or
> >          die "failed to open public_html/registered_names.txt: $!\n";
> > print DATA $_;
> > close(DATA);
> > --------
> >
> > Then in ~/.procmailrc do something like:
> > ---
> > :0
> > * ^From:.*callen at corpus.wa.edu.au
> > | /path/to/script
> > ---
><SNIP>
> > I don't no how to script other than simple stuff.
> > Thanks,
> > Tim
> >
> >
> > LinuxAlien
> > Riverton, Perth, WA
> >
> > Australian Linux Technical Conference, Perth 2003 http://linux.conf.au

LinuxAlien
Riverton, Perth, WA

Australian Linux Technical Conference, Perth 2003 http://linux.conf.au



More information about the plug mailing list