Bug 7824 - Improve test_log() for multiple rule hits
Summary: Improve test_log() for multiple rule hits
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Libraries (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: All All
: P3 minor
Target Milestone: 4.0.0
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-07 12:24 UTC by Henrik Krohns
Modified: 2020-06-07 12:28 UTC (History)
1 user (show)



Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Henrik Krohns 2020-06-07 12:24:55 UTC
It's not possible to call test_log() multiple times to log multiple DNS hits (for example Bug 7822)

- test_log() is not documented
- got_hit() doesn't proceed if rule is already hit
- _handle_hit() creates REPORT/SUMMARY tags by simply appending strings at every call. These should be created _after_ scanning is complete.