Patch: update_bad_phishing_sites to honor proxy settings

Julian Field MailScanner at ecs.soton.ac.uk
Thu May 29 10:06:23 IST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Many thanks for that. It will be in the next release unless anyone has 
anything bad to say about it.

Heinz.Knutzen at dataport.de wrote:
> 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";

Jules

- -- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.8.3 (Build 4028)
Comment: Use Enigmail to decrypt or check this message is legitimate
Charset: ISO-8859-1

wj8DBQFIPnIQEfZZRxQVtlQRAr02AJ0cldTG5w34Y7D5xxoWP6e7VVDhpACdHh/w
A+jnD1vQ07YVhCyCuM8gp98=
=4/NL
-----END PGP SIGNATURE-----

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list