http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5557





------- Additional Comments From [EMAIL PROTECTED]  2007-09-18 04:41 -------
This bug (on Windows at least) happens because the temp files are not closed 
before deletion is attempted.

Non-text mime parts are stored in temp files, and these files are not closed in 
the finish() code in message.pm before they are deleted.
Adding:

    if (ref $part->{'raw'} eq 'GLOB') {
      # Make sure the file is closed it if it's a temp file -- Bug 5557
      close ($part->{'raw'});
    }

to the cleanup of Message::Node part in finish() and moving:

  # delete temporary files
  if ($self->{'tmpfiles'}) {
    unlink @{$self->{'tmpfiles'}};
    delete $self->{'tmpfiles'};
  }

to the end of finish() fixes the problem.
Bug 5626 is probably not related to this bug.




------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to