exim and perl filter

2000-06-03 Thread ulla.russell
In an article in the linux gazette I found the following piece of code: -- #!/usr/bin/perl -- $address = '[EMAIL PROTECTED]'; -- while(<>){ -- if(/^From: /){ s/<.*>/<$address>/; print; last; } -- print;} -- while(<>){ print; } After naming it /usr/local/bin/mail-filter and changin

perl and exim filter

2000-06-03 Thread ulla.russell
I have recently been setting up my email on the linux side and decided to use a tip that I found in an old addition of the linux gazette. Basically the idea is to create a filter for mail leaving the local system. I tried to use it a few times but the mail keep being sent back with the followi