9d8a017ae0
tested by todd@ and brad@
22 lines
1.1 KiB
Plaintext
22 lines
1.1 KiB
Plaintext
$OpenBSD: patch-bin_update_bad_phishing_sites,v 1.1 2008/04/24 21:31:00 todd Exp $
|
|
--- bin/update_bad_phishing_sites.orig Fri Apr 4 01:36:56 2008
|
|
+++ bin/update_bad_phishing_sites Fri Apr 4 01:42:50 2008
|
|
@@ -39,7 +39,7 @@ use DirHandle;
|
|
|
|
# Work out Quarantine Directory from MailScanner.conf
|
|
my $base = '/var/spool/MailScanner/quarantine'; # Default value
|
|
-my $msconf = new FileHandle("< /opt/MailScanner/etc/MailScanner.conf") or warn "Cannot open main configuration file /opt/MailScanner/etc/MailScanner.conf";
|
|
+my $msconf = new FileHandle("< %SYSCONFDIR%/MailScanner/MailScanner.conf") or warn "Cannot open main configuration file %SYSCONFDIR%/MailScanner/MailScanner.conf";
|
|
while(<$msconf>) {
|
|
$base = $1 if /^\s*Quarantine\s*Dir\s*=\s*(\S+)/;
|
|
}
|
|
@@ -49,7 +49,7 @@ my $current = $base . '/phishingupdate/';
|
|
my $cache = $current . 'cache/';
|
|
my $status = $current . 'status';
|
|
my $urlbase = "http://www.mailscanner.tv/";
|
|
-my $target= "/opt/MailScanner/etc/phishing.bad.sites.conf";
|
|
+my $target= "%SYSCONFDIR%/MailScanner/phishing.bad.sites.conf";
|
|
my $query="msupdate.greylist.bastionmail.com";
|
|
|
|
my $baseupdated = 0;
|