<A> Tags
Julian Field
MailScanner at ecs.soton.ac.uk
Wed Feb 23 13:27:02 GMT 2005
[ The following text is in the "ISO-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
Found it.
In SweepContent.pm, please apply this patch:
--- SweepContent.pm.old 2005-02-21 20:50:11.000000000 +0000
+++ SweepContent.pm 2005-02-23 13:25:31.000000000 +0000
@@ -584,7 +584,9 @@
} elsif ($convertwebbugs) {
#print STDERR "Web Bug converted\n";
$message->{tagstoconvert} .= 'webbug ';
- $message->{bodymodified} = 1;
+ # Only mark it for rebuilding if we actually found a webbug
+ # as we shouldn't rebuild if it was an innocent image
+ #$message->{bodymodified} = 1;
#print STDERR "Going to disarm web bugs\n";
} else {
#print STDERR "Web Bug ignored\n";
That will stop it rebuilding it. Stupid bug of mine.
Roger Jochem wrote:
>It wrote:
>
>It's an image
>The src is "cid:0402...."
>
>But even so the message is rebuild...
>
>I pug another print inside the if, to see if the message enters in the
>"webbug" part, but it does not. But for some reason even so it is rebuild.
>And if I disable "disarm web bugs" the message goes through fine...
>
>----- Original Message -----
>From: "Julian Field" <MailScanner at ECS.SOTON.AC.UK>
>To: <MAILSCANNER at JISCMAIL.AC.UK>
>Sent: Wednesday, February 23, 2005 9:22 AM
>Subject: Re: <A> Tags
>
>
>
>
>>Works fine on my system.
>>
>>Around line 4250 of Message.pm, please insert a couple of print lines so
>>it reads
>> } elsif ($tagname eq 'img' && $DisarmWebBug) {
>> print STDERR "It's an image\n";
>> print STDERR "The src is \"" . $attr->{'src'} . "\"\n";
>>Then set "Debug = yes", put the message in your incoming queue and run
>>check_mailscanner.
>>Let me know what it prints. On my system it prints
>>The src is "cid:....."
>>
>>Roger Jochem wrote:
>>
>>
>>
>>>I restart it...
>>>
>>>I put the example message in the address www.rudnick.com.br/message
>>>
>>>It is in Outlook Express eml format. Is it ok?
>>>
>>>The sended.eml is the original message, the received.eml is how it came
>>>
>>>
>back
>
>
>>>to me...
>>>
>>>----- Original Message -----
>>>From: "Julian Field" <MailScanner at ECS.SOTON.AC.UK>
>>>To: <MAILSCANNER at JISCMAIL.AC.UK>
>>>Sent: Wednesday, February 23, 2005 8:51 AM
>>>Subject: Re: <A> Tags
>>>
>>>
>>>
>>>
>>>
>>>
>>>>And you did stop and restart MailScanner after applying the patch?
>>>>
>>>>If so, please can you put an example offending message on the web for
>>>>
>>>>
>me.
>
>
>>>>Roger Jochem wrote:
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>>I applied the patch with no result... Still the same problem...
>>>>>
>>>>>----- Original Message -----
>>>>>From: "Julian Field" <MailScanner at ECS.SOTON.AC.UK>
>>>>>To: <MAILSCANNER at JISCMAIL.AC.UK>
>>>>>Sent: Tuesday, February 22, 2005 5:34 PM
>>>>>Subject: Re: <A> Tags
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>Please try it with this patch. Now it will ignore images that are
>>>>>>bundled as part of the message.
>>>>>>
>>>>>>Roger Jochem wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>>Found it!
>>>>>>>
>>>>>>>My signature has a small jpeg image on it and I have the "allow web
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>bugs"
>>>
>>>
>>>
>>>
>>>>>>>set to disarm. This is rebuilding the message... Is it correct? My
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>image
>>>
>>>
>>>
>>>
>>>>>>>
>>>>>>>
>>>>>is
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>>not in some site or something, it goes with the message... Should it
>>>>>>>
>>>>>>>
>be
>
>
>>>>>>>"disarmed"?
>>>>>>>
>>>>>>>----- Original Message -----
>>>>>>>From: "Julian Field" <MailScanner at ECS.SOTON.AC.UK>
>>>>>>>To: <MAILSCANNER at JISCMAIL.AC.UK>
>>>>>>>Sent: Tuesday, February 22, 2005 3:47 PM
>>>>>>>Subject: Re: <A> Tags
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>>It must be rebuilding it for some reason. But it should really only
>>>>>>>>
>>>>>>>>
>do
>
>
>>>>>>>>that if it definitely needs to. Are there any other changes apparent
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>in
>>>
>>>
>>>
>>>
>>>>>>>>the transmitted message, or in the logs?
>>>>>>>>
>>>>>>>>Roger Jochem wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>>Hello, Julian!
>>>>>>>>>
>>>>>>>>>Any news about this subject?
>>>>>>>>>
>>>>>>>>>----- Original Message -----
>>>>>>>>>From: "Roger Jochem" <roger at rudnick.com.br>
>>>>>>>>>To: "MailScanner mailing list" <MAILSCANNER at JISCMAIL.AC.UK>
>>>>>>>>>Sent: Tuesday, February 22, 2005 8:11 AM
>>>>>>>>>Subject: Re: <A> Tags
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>These signature is not added by MailScanner, is the Outlook
>>>>>>>>>>
>>>>>>>>>>
>Express
>
>
>>>>>>>>>>signature...
>>>>>>>>>>
>>>>>>>>>>----- Original Message -----
>>>>>>>>>>From: "Julian Field" <MailScanner at ECS.SOTON.AC.UK>
>>>>>>>>>>To: <MAILSCANNER at JISCMAIL.AC.UK>
>>>>>>>>>>Sent: Tuesday, February 22, 2005 8:11 AM
>>>>>>>>>>Subject: Re: <A> Tags
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>>If it adds a signature, it has to rebuild the message. Sorry, but
>>>>>>>>>>>
>>>>>>>>>>>
>I
>
>
>>>>>>>>>>>can't avoid that.
>>>>>>>>>>>
>>>>>>>>>>>Roger Jochem wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>Hello, Julian
>>>>>>>>>>>>
>>>>>>>>>>>>Some of the messages are working fine today with the new version
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>of
>>>
>>>
>>>
>>>
>>>>>>>>>>>>MailScanner. They pass through without being rebuild and came to
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>the
>>>
>>>
>>>
>>>
>>>>>>>>>>>>other side with the same size and format.
>>>>>>>>>>>>
>>>>>>>>>>>>But if the same message has an html signature, then it is
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>rebuild...
>>>
>>>
>>>
>>>
>>>>>>>>>>>>And the only message in the server log is about an <a> tag found
>>>>>>>>>>>>(probable the <a> tag of the e-mail in the signature).
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>--
>>>>>>Julian Field
>>>>>>www.MailScanner.info
>>>>>>Buy the MailScanner book at www.MailScanner.info/store
>>>>>>Professional Support Services at www.MailScanner.biz
>>>>>>MailScanner thanks transtec Computers for their support
>>>>>>
>>>>>>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).
>>>>>>
>>>>>>Support MailScanner development - buy the book off the website!
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>------------------------ 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!
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>--
>>>>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).
>>>>
>>>>Support MailScanner development - buy the book off the website!
>>>>
>>>>
>>>>
>>>>
>>>------------------------ 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!
>>>
>>>
>>>
>>>
>>>
>>--
>>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).
>>
>>Support MailScanner development - buy the book off the website!
>>
>>
>
>------------------------ 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!
>
>
>
--
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).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list