https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8102

            Bug ID: 8102
           Summary: DecodeShortURLs fails to log lookups
           Product: Spamassassin
           Version: 4.0.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Plugins
          Assignee: dev@spamassassin.apache.org
          Reporter: dilld...@bjork.org
  Target Milestone: Undefined

At least in my setup, this code for DecodeShortURLs never seems to cause a
logged event:

    if ($self->{url_shortener_loginfo}) {
      info("found $short_url => $location");
    } else {
      dbg("found $short_url => $location");
    }

If I have cache enabled, this, however, does:

    if ($conf->{url_shortener_loginfo}) {
      info("found cached $short_url => $location");
    } else {
      dbg("found cached $short_url => $location");
    }

IOW, if I have cache enabled I only get log entries when a matched URL already
exists in the cache, but not when it initially gets added to the cache. If a
URL is only received once, or has already expired from the cache (or cache is
simply disabled), it won't get logged at all.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to