Patch: update_bad_phishing_sites to honor proxy settings

Heinz.Knutzen at dataport.de Heinz.Knutzen at dataport.de
Thu May 29 09:17:14 IST 2008


The script "update_bad_phishing_sites" currently doesn't work if it has
to use a http proxy:
"running hourly cronjob scripts  SCRIPT: update_bad_phishing_sites
exited with RETURNCODE = 2."
 
Below you will find a small patch, which instructs LWP::UserAgent to
honor the proxy_* environment variables.
I tested this with mailscanner-4.69.9-3.
 
Heinz 
 
 
*** /usr/sbin/update_bad_phishing_sites.unpatched       Thu May 29
09:24:13 2008
--- /usr/sbin/update_bad_phishing_sites Thu May 29 09:24:50 2008
***************
*** 140,145 ****
--- 140,146 ----
  # Create a user agent object
  my $ua = LWP::UserAgent->new;
  $ua->agent("UpdateBadPhishingSites/0.1 ");
+ $ua->env_proxy;
 
  if (!($currentbase eq $status_base)) {
        print "This is base update\n";

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20080529/b604f508/attachment.html


More information about the MailScanner mailing list