CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Perl mail filter (if anyone can use it)

 



wjbell
stranger

Sep 20, 2003, 5:43 PM

Post #1 of 3 (527 views)
Perl mail filter (if anyone can use it) Can't Post

In my earlier post I asked for help on a config file question for my mail filter. It works perfectly so I thought I'd post the perl script for anyone that can use it.

It's written to run on linux out of your home directory and filter all of your mail depending on rules you provide in a text file.

Here's the page explaining everything and the updated script:

[url]http://www.belletc.net/index.cgi?page=scripts_mailfilter[/url]


KevinR
Veteran


Sep 21, 2003, 12:13 AM

Post #2 of 3 (524 views)
Re: [wjbell] Perl mail filter (if anyone can use it) [In reply to] Can't Post

thats very thoughtful of you.Smile



Is this maybe a typo in the script:



if ($line =~ /^Date-warning: (.*)/i)
{
$datewarn = "1";


is it maybe supposed to be:

$datewarn = "$1";
-------------------------------------------------


wjbell
stranger

Sep 21, 2003, 6:58 AM

Post #3 of 3 (522 views)
Re: [KevinR] Perl mail filter (if anyone can use it) [In reply to] Can't Post

Yeah, probably. I don't even use the date warn thing any more so I should probably remove it.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives