Phishing net improvement

Sylvain Phaneuf sylvain.phaneuf at IMSU.OXFORD.AC.UK
Fri Nov 12 12:28:24 GMT 2004


Thanks Julian, I will upgrade to 4.35.11 and try the patch.

Sylvain


>>> mailscanner at ECS.SOTON.AC.UK 12/11/2004 12:11:53 >>>
The code there changed quite a bit between 4.35.9 and 4.35.11 if I
remember
correctly.

<hack type="nasty">Unpack the 4.35.11 distribution and start from the
Message.pm file in there. Backup your 4.35.9 Message.pm first, but you
should be able to copy the 4.35.11(+patch) Message.pm file over the top
of
your 4.35.9 file.</hack>

The "correct" solution of course is to just upgrade from 4.35.9 to
4.35.11,
then apply the patch.


On 12/11/04 11:57 am, "Sylvain Phaneuf"
<sylvain.phaneuf at IMSU.OXFORD.AC.UK>
wrote:

> 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?

>>>> 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).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list