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

           Summary: Shortcircuiting before DNS lookups
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P4
         Component: Plugins
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=4342)
 --> (https://issues.apache.org/SpamAssassin/attachment.cgi?id=4342)
Hacky test patch

Shortcircuiting ALL_TRUSTED, USER_IN_WHITELIST etc could use tiny improvement.
Currently DNS queries are sent and message is decoded before these simple rules
are evaluated, wasting bandwidth and CPU.

I made a quick hack for myself. I set these rules at priority -10000 and run
them manually before run_rbl_eval_tests.

I couldn't come up with any elegant solution for general use. Perhaps we could
allocate some priority-range that are run before DNS? But that would mean users
could accidently prioritize rules that need decoded message, and decoding 
should be done only after DNS launching. Ideas?


-- 
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