openbsd-ports/mail/mailscanner/patches/patch-bin_update_bad_phishing_emails
pea 644d721dfc unbreak update_bad_phishing_sites and
update_bad_phishing_emails scripts.

ok brad (maintainer), sthen@
2012-03-06 20:09:40 +00:00

22 lines
1.1 KiB
Plaintext

$OpenBSD: patch-bin_update_bad_phishing_emails,v 1.3 2012/03/06 20:09:40 pea Exp $
--- bin/update_bad_phishing_emails.orig Mon Mar 5 10:33:31 2012
+++ bin/update_bad_phishing_emails Mon Mar 5 13:05:01 2012
@@ -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 . 'emails.cache/';
my $status = $current . 'emails.status';
my $urlbase = "http://cdn.mailscanner.info/emails.";
-my $target= "/opt/MailScanner/etc/phishing.bad.emails.conf";
+my $target= "%SYSCONFDIR%/MailScanner/phishing.bad.emails.conf";
my $query="emails.msupdate.greylist.bastionmail.com";
my $baseupdated = 0;