You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2008/12/18 17:10:24 UTC

[Bug 5934] Enhancements to RelayCountry.pm

https://issues.apache.org/SpamAssassin/show_bug.cgi?id=5934





--- Comment #3 from Jorge Valdes <jo...@joval.info>  2008-12-18 08:10:24 PST ---
Following Karsten's lead, here is a modification to the patch from Daniel,
instead of comparing $cc several times,

    $crosscountries +=1 if (($lcc ne '') and ($lcc ne $cc) and ($cc !~
/XX|\*\*/));
    $countriesvisited{$cc}++ if $cc !~ /XX|\*\*/;
    $lcc = $cc if $cc !~ /XX|\*\*/;

why not just doit once?

    if ($cc !~ /XX|\*\*/) {
      $crosscountries += 1 if (($lcc ne '') and ($lcc ne $cc));
      $countriesvisited{$cc}++;
      $lcc = $cc;
    }


-- 
Configure bugmail: https://issues.apache.org/SpamAssassin/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.