Index: sa-learn.raw =================================================================== --- sa-learn.raw (revision 1803088) +++ sa-learn.raw (working copy) @@ -398,8 +398,14 @@ for ($!=0; ; $!=0) { chomp; next if /^\s*$/; - if (/^(?:ham|spam):\w*:/) { - push ( @targets, $_ ); + if (/^(ham|spam):(\w*):(.*)/) { + my $class = $1; + my $format = $2; + my $target = $3; + if ( $format eq "") { + $format = "detect"; + } + push ( @targets, "$class:$format:$target" ); } else { target($_);