SA Bugzilla – Bug 5808
temp files not removed
Last modified: 2012-05-14 22:44:19 UTC
On both Linux and Windows some temp files are still not removed when spamassassin receives a signal. Adding if (defined $tempfile) { unlink $tempfile; $tempfile = undef; } at the end of kill_handler in the spamassassin script helps, but temp files created through my $tmpf = $permsgstatus->create_fulltext_tmpfile($fulltext); in dccproc_lookup (line 526 in the DCC.pm plugin) will still not be cleaned up properly.
Cannot reproduce, some more information would be helpful. Tested with SpamAssassin version 3.3.2, running on Perl version 5.14.2 under Window 7 Professional. Temp files are created in %userprofile%\AppData\Local\Temp and correctly removed when spamassassin script has run through or in case of spamd, the daemon startup initialization has completed. If no more information given, I suggest it to be closed as invalid.
Created attachment 5060 [details] Delete a fulltext_tmpfile as created by some plugins on an unclean termination
trunk (3.4.0): Bug 5808: temp files not removed Sending lib/Mail/SpamAssassin/PerMsgStatus.pm Committed revision 1338255.
Considered fix by patch and no further ability to recreate
Created attachment 5062 [details] localize $@, otherwise test check_implemented.t was broken Bug 5808, localize $@ in DESTROY Sending lib/Mail/SpamAssassin/PerMsgStatus.pm Committed revision 1338469.