[Mimedefang] Need Tip on Filter

Michael Sims michaels at crye-leike.com
Sun Mar 21 01:00:17 EST 2004


Peter A. Cole wrote:
> I'm assuming that if I put something in to move these to my spamdrop
> if the line "X-Telstra-AS-Scanner: 1.0.1-LBW, xx%" is greater than,
> say, 90% (to be safe from false positives), then this will be
> successful.  
[..]
> Any ideas?

Try this in filter_end (untested):

  open(HEADERS, '< ./HEADERS');
  while (<HEADERS>) {
    if (/^X-Telstra-AS-Scanner: .*?, (.*?)% /i
        && $1 >= 90) {

      delete_recipient($_) foreach (@Recipients);
      add_recipient('spamdrop at example.com');
      last;
    }
  }
  close(HEADERS);

___________________________________________
Michael Sims
Project Analyst - Information Technology
Crye-Leike Realtors
Office: (901)758-5648  Pager: (901)769-3722
___________________________________________



More information about the MIMEDefang mailing list