#1 (permalink)  
Old 08-30-2006, 05:31 PM
spiff06's Avatar
Registered User
 
Join Date: Jan 2004
Posts: 87
spiff06
[MailScanner] Removing the ALT attribute for Web Bug images

With MailScanner, "Web bug from" warnings appear when a Web bug, i.e. a tiny 1x1 image is inserted in an HTML message, by which the sender attempts to know whether the recipient has read the email.

Now, having a string of characters replace a 1x1 picture in a mail client which does not load the pictures (for example, Thunderbird), means the page formatting is broken. On the eBay message I just received, the Web bug warnings make the page unreadable. I could show the images (it's only a button click away...), but I thought it would make more sense to remove the ALT attribute from the IMG tag entirely.

I've commented out a line in /usr/mailscanner/lib/MailScanner/Message.pm:

Code:
        # It's not in the whitelist, so zap it with insecticide!
        $output .= '<img src="' . $WebBugReplacement . '" width="' .
                   $attr->{'width'} .  '" height="' . $attr->{'height'} .
                   '" alt="';
#        $output .= 'Web Bug from ' . $attr->{'src'} if $attr->{'src'};
        $output .= '" />';
        $DisarmWebBugFound = 1;
        $DisarmDoneSomething{'web bug'} = 1;
Is there anything wrong in doing this? Specifically, would a remote server deem an incoming message from my server more likely flaggable as spam if the ALT attributes are set to the empty string?

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 09:10 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc