openbsd-ports/mail/mailscanner/patches/patch-bin_update_bad_phishing_emails

22 lines
1.1 KiB
Plaintext

$OpenBSD: patch-bin_update_bad_phishing_emails,v 1.1 2009/10/07 20:59:29 sthen Exp $
--- bin/update_bad_phishing_emails.orig Fri Aug 28 18:44:29 2009
+++ bin/update_bad_phishing_emails Fri Aug 28 18:45:34 2009
@@ -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://www.mailscanner.tv/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;