4.39.3-1 bug or is it me - but 4.38.9-1 OK!

Julian Field MailScanner at ecs.soton.ac.uk
Fri Feb 25 13:54:29 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. ]

In Message.pm there is a subroutine called "PruneEntityTree".

Try this:
1. Change the call to it to say

PruneEntityTree($this->{entity},$this->{entity2file},$this->{file2entity});

and change the code for it:

# Prune all the undef branches out of an entity tree
sub PruneEntityTree {
  my ($entity,$entity2file,$file2entity) = @_;

  #print STDERR "Pruning $entity\n";
  return undef unless $entity;

  my(@newparts, $part, $newpart);

  # Do a pre-traversal depth-first search of the tree
  foreach $part ($entity->parts) {
    #print STDERR "Going down to $part\n";
    $newpart =
$newpart?PruneEntityTree($part,$entity2file,$file2entity):$part;
    if ($newpart) {
      push @newparts, $newpart;
    } else {
      my $file = $entity2file->{$newpart} if $entity2file;
      delete $entity2file->{$newpart} if $entity2file && $file;
      delete $file2entity->{$file} if $file2entity && $file;
    }
    #print STDERR "Coming up, added $newpart\n";
  }

  # Keep all the parts we found, prune as much as we can
  if (@newparts) {
    #print STDERR "Returning entity $entity\n";
    $entity->parts(\@newparts);
    return $entity;
  } else {
    #print STDERR "Returning undef\n";
    return $entity;
  }
}

Please see if that helps at all.

Are any of your warning files either empty or don't exist correctly?
Please check the startup logs for any warnings. If they are empty it
won't warn you but may cause a problem.

Quentin Campbell wrote:

>Julian
>
>Having re-installed 4.39.3-1 with the same debug result I have
>re-installed the previous MailScanner, 4.38.9-1.
>
>The problematic message is now processed without a problem.
>
>Quentin
>---
>PHONE: +44 191 222 8209    Information Systems and Services (ISS),
>                           University of Newcastle,
>                           Newcastle upon Tyne,
>FAX:   +44 191 222 8765    United Kingdom, NE1 7RU.
>------------------------------------------------------------------------
>"Any opinion expressed above is mine. The University can get its own."
>
>
>
>>-----Original Message-----
>>From: MailScanner mailing list
>>[mailto:MAILSCANNER at JISCMAIL.AC.UK] On Behalf Of Quentin Campbell
>>Sent: 25 February 2005 12:25
>>To: MAILSCANNER at JISCMAIL.AC.UK
>>Subject: Re: 4.39.3-1 bug or is it me - what MailScanner "debug" shows
>>
>>[snip]
>>
>>
>>>Can you try one thing: wipe /usr/lib/MailScanner and reinstall a
>>>guaranteed fresh copy. Just in case you are accidentally running a
>>>mixture of versions.
>>>
>>>
>>>
>>[snip]
>>
>>Julian
>>
>>Did that and carefully re-installed MS 4.39.3-1. Get same error:
>>
>>[root at cheviot7 mqueue.in]# check_mailscanner
>>Starting MailScanner...
>>In Debugging mode, not forking...
>>SA bayes lock is /root/.spamassassin/bayes.lock
>>Bayes lock is at /root/.spamassassin/bayes.lock
>>Can't call method "print" on an undefined value at
>>/usr/lib/perl5/site_perl/5.8.0/MIME/Entity.pm line 1803.
>>[root at cheviot7 mqueue.in]#
>>
>>
>>Quentin
>>
>>------------------------ 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