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

Henrik Krohns <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Henrik Krohns <[email protected]> 2011-12-15 17:18:36 UTC ---
-1 for spamd specific
-1 for any locking whatsoever
-1 for multiplier (what's the point? 1 query per 1 hour or 2 hours makes no
difference, but would need more complex state processing)

Possibly the simplest and cheapest solution would be using filenames for
keeping state.

When block is hit: create file LOCAL_STATE_DIR/dnsblock.<identifier>

The identifier should come from the rbl identifier/name, in this case "dnswl":
eval:check_rbl_sub('dnswl-firsttrusted', '^127\.0\.\d+\.255$')

Then rbl function can simply stat() if LOCAL_STATE_DIR/dnsblock.<identifier>
exists. If mtime is > 1 hour, just unlink() the file.

My slow linux VPS benchmarks at 715000 stat calls per second testing for a set
of 10 different non-existing filenames, so performance is a non-issue.

Proposed config "block_disable" would need to refer to identifier instead of a
rule name.

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

Reply via email to