You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2007/06/11 18:05:23 UTC

svn commit: r546181 - /spamassassin/branches/3.1/sa-learn.raw

Author: felicity
Date: Mon Jun 11 09:05:22 2007
New Revision: 546181

URL: http://svn.apache.org/viewvc?view=rev&rev=546181
Log:
bug 5336: properly allow for no input specification to work as stdin

Modified:
    spamassassin/branches/3.1/sa-learn.raw

Modified: spamassassin/branches/3.1/sa-learn.raw
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.1/sa-learn.raw?view=diff&rev=546181&r1=546180&r2=546181
==============================================================================
--- spamassassin/branches/3.1/sa-learn.raw (original)
+++ spamassassin/branches/3.1/sa-learn.raw Mon Jun 11 09:05:22 2007
@@ -401,7 +401,10 @@
 
     # make sure the target list is in the normal AI format
     if ($targets[$elem] !~ /^[^:]*:[a-z]+:/) {
-      $targets[$elem] = target($targets[$elem]);
+      my $item = splice @targets, $elem, 1;
+      $elem--; # go back to this element again
+      target($item); # add back to the list
+      next;
     }
   }