You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jh...@apache.org on 2021/02/25 03:30:51 UTC

svn commit: r1886903 - /spamassassin/trunk/masses/rule-qa/corpus-hourly

Author: jhardin
Date: Thu Feb 25 03:30:51 2021
New Revision: 1886903

URL: http://svn.apache.org/viewvc?rev=1886903&view=rev
Log:
Clean up temporary work files

Modified:
    spamassassin/trunk/masses/rule-qa/corpus-hourly

Modified: spamassassin/trunk/masses/rule-qa/corpus-hourly
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/rule-qa/corpus-hourly?rev=1886903&r1=1886902&r2=1886903&view=diff
==============================================================================
--- spamassassin/trunk/masses/rule-qa/corpus-hourly (original)
+++ spamassassin/trunk/masses/rule-qa/corpus-hourly Thu Feb 25 03:30:51 2021
@@ -446,6 +446,8 @@ sub gen_class {
       }
       close(IN);
       for (sort sort_all @output) { print OUT; }
+      unlink "$opt{tmp}/ham.log.$$";
+      unlink "$opt{tmp}/spam.log.$$";
     }
     elsif ($age eq "age") {
       my @output;
@@ -476,6 +478,8 @@ sub gen_class {
         close(IN);
       }
       for (sort sort_all @output) { print OUT; }
+      unlink "$opt{tmp}/ham.log.$$";
+      unlink "$opt{tmp}/spam.log.$$";
     }
     elsif (@ham && @spam) {
       # get logs
@@ -486,6 +490,8 @@ sub gen_class {
       open(IN, "./hit-frequencies -TxpaP $flags $opt{tmp}/spam.log.$$ $opt{tmp}/ham.log.$$ |");
       while(<IN>) { print(OUT); }
       close(IN);
+      unlink "$opt{tmp}/ham.log.$$";
+      unlink "$opt{tmp}/spam.log.$$";
     }
 
     $bytes = (-s OUT);