Phishing net improvement
Sylvain Phaneuf
sylvain.phaneuf at IMSU.OXFORD.AC.UK
Fri Nov 12 11:57:43 GMT 2004
Hi,
I am trying to patch my MS (4.35.9) with the patch and I can't make it
to work. I have followed the instructions below, but I get an error
message. I have patched Message.pm before as per Julian's instructions,
and it was always successful.
First of all the Message.pm file on my system is
/opt/MailScanner/lib/MailScanner
If I run that patch command
patch < /tmp/Message.pm.phishing.patch
I get the following error:
patching file Message.pm
Hunk #2 FAILED at 4057.
1 out of 2 hunks FAILED -- saving rejects to file Message.pm.rej
here is the content of Message.pm.rej:
***************
*** 4055,4063 ****
$linkurl =~ s/\%a0//g;
$linkurl =~ s#%([0-9a-f][0-9a-f])#chr(hex('0x' . $1))#gei; #
Unescape
$linkurl =~ s/\s+//; # Remove any whitespace
$linkurl =~ s/^(https?|ftp):\/\///;
$linkurl =~ s/\/.*$//; # Only compare up to the first '/'
(hostname only)
- $linkurl =~ s/\<\/?(br|p)\>$//i; # Remove trailing <br> and <p>
tags
$linkurl =~ s/\/$//; # LinkURL is trimmed -- note
#print STDERR "2SquashedText = \"$squashedtext\"\n";
#print STDERR "2LinkURL = \"$linkurl\"\n";
--- 4057,4067 ----
$linkurl =~ s/\%a0//g;
$linkurl =~ s#%([0-9a-f][0-9a-f])#chr(hex('0x' . $1))#gei; #
Unescape
$linkurl =~ s/\s+//; # Remove any whitespace
+ #$linkurl =~ s/(\<\/?[^>]*\>)*//ig; # Remove tags
+ #$linkurl =~ s/^(\<\/?(br|p|ul)\>)*//ig; # Remove leading br,
p, ul tags
$linkurl =~ s/^(https?|ftp):\/\///;
$linkurl =~ s/\/.*$//; # Only compare up to the first '/'
(hostname only)
+ $linkurl =~ s/(\<\/?(br|p|ul)\>)*$//ig; # Remove trailing br,
p, ul tags
$linkurl =~ s/\/$//; # LinkURL is trimmed -- note
#print STDERR "2SquashedText = \"$squashedtext\"\n";
#print STDERR "2LinkURL = \"$linkurl\"\n";
Can someone help please?
Regards,
Sylvain
===========================================================
Sylvain Phaneuf --- Systems Manager | phone : +44 (0)1865 221323
Clinical School Information Management Services Unit (IMSU)
Medical Sciences Division
University of Oxford | email :
sylvain.phaneuf at imsu.ox.ac.uk
Room 3A25B John Radcliffe Hospital | fax : +44 (0) 1865 221322
Oxford OX3 9DU England
===========================================================
>>> mailscanner at ECS.SOTON.AC.UK 09/11/2004 10:37:28 >>>
Save the patch file into /tmp then do this:
cd /usr/lib/MailScanner/MailScanner
patch < /tmp/Message.pm.phishing.patch
service MailScanner restart
On 9/11/04 10:24 am, "Carinus Carelse" <carinus.carelse at MRC.AC.ZA>
wrote:
> Can someone direct me to how do install this patch please.
--
Julian Field
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
More information about the MailScanner
mailing list