Beta 4.51.2: "Use TNEF Contents"

Julian Field MailScanner at
Fri Feb 24 16:41:12 GMT 2006


On 24 Feb 2006, at 16:19, Julian Field wrote:

> * PGP Signed: 02/24/06 at 16:19:43
> On 24 Feb 2006, at 15:38, Rick Cooper wrote:
>>> -----Original Message-----
>>> From: mailscanner-bounces at
>>> [mailto:mailscanner-bounces at]On Behalf Of  
>>> Julian
>>> Field
>>> Sent: Thursday, February 23, 2006 4:48 PM
>>> To: MailScanner discussion
>>> Subject: Re: Beta 4.51.2: "Use TNEF Contents"
>> [...]
>> Julian,
>> If you send a rich text message with no body and Use TNEF is set  
>> to replace,
>> MailScanner goes into a loop dying and restarting. I tracked the  
>> error down
>> to line 375. I am not sure what is what there but  
>> the debug
>> message is:
>> read-open
>> /var/spool/mailscanner/incoming/16938/1FCdDL-0003Ai-DQ/ 
>> winmail.dat: No such
>> file or directory at /usr/lib/perl5/site_perl/5.8.0/MIME/  
>> line 435
>> Same with internal or external tnef parser. If you Change Use TNEF  
>> Contents
>> to add then it will pass. As it stands it would be fairly easy to DOS
>> MailScanner with an empty bodied rtf message.
> Well found, thankyou. This is why I have beta versions :-)
> Please try editing (in /usr/lib/MailScanner/MailScanner).
> On line 275 you should see this:
> 	next if /^msg[\d-]+\.txt$/;
> Please try commenting out that line and try the test again.

And another change too:
In around line 1680 there will be some code that says this:

   # Now try the same on all the parts
   my(@parts, $part, @keep);
   @parts = $entity->parts;
   foreach $part (@parts) {
     push @keep, $part unless DeleteEntity($message, $part, $tnef) == 1;

After that, add this line:
   $entity->make_singlepart unless scalar(@keep);

and try again.

Hopefully both of these combined will help solve the problem.

If you can see if this fixes the problem, I'll put it out in a new  
beta this weekend.

- -- 
Julian Field
Buy the MailScanner book at
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654

Version: PGP Desktop 9.0.5 (Build 5050)


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

More information about the MailScanner mailing list