Package: mailscanner / 4.79.11-2.2

update_bad_phishing_emails.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! /bin/sh /usr/share/dpatch/dpatch-run
## update_bad_phishing_emails.dpatch by Simon Walter <Simon Walter <simon.walter@hp-factory.de>>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
Index: mailscanner-4.79.11/bin/update_bad_phishing_emails
===================================================================
--- mailscanner-4.79.11.orig/bin/update_bad_phishing_emails	2010-02-12 14:05:14.000000000 +0100
+++ mailscanner-4.79.11/bin/update_bad_phishing_emails	2010-04-11 17:57:34.000000000 +0200
@@ -39,7 +39,7 @@
 
 # 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("< /etc/MailScanner.conf") or warn "Cannot open main configuration file /etc/MailScanner.conf";
 while(<$msconf>) {
   $base = $1 if /^\s*Quarantine\s*Dir\s*=\s*(\S+)/;
 }
@@ -49,7 +49,7 @@
 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= "/etc/phishing.bad.emails.conf";
 my $query="emails.msupdate.greylist.bastionmail.com";
 
 my $baseupdated = 0;