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...@spamassassin.apache.org on 2020/06/07 12:24:55 UTC
[Bug 7824] New: Improve test_log() for multiple rule hits
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7824
Bug ID: 7824
Summary: Improve test_log() for multiple rule hits
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P2
Component: Libraries
Assignee: dev@spamassassin.apache.org
Reporter: apache@hege.li
Target Milestone: Undefined
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.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7824] Improve test_log() for multiple rule hits
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7824
Henrik Krohns <ap...@hege.li> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Henrik Krohns <ap...@hege.li> ---
Now supports multiple calls of $pms->test_log() for rules:
- add $pms->check_cleanup() to finalize tags/reports etc, called from Check.pm
after Plugins check_cleanup
- deprecate $pms->{test_log_msgs}, rename to $pms->{test_logs} because old
plugins might call %{$self->{test_log_msgs}} = ();
- deprecate $pms->clear_test_state() since it's not needed anymore
- $pms->test_log() accepts $rulename as second argument (if missing, tries
get_current_eval_rule_name())
Sending trunk/UPGRADE
Sending trunk/lib/Mail/SpamAssassin/Dns.pm
Sending trunk/lib/Mail/SpamAssassin/PerMsgStatus.pm
Sending trunk/lib/Mail/SpamAssassin/Plugin/ASN.pm
Sending trunk/lib/Mail/SpamAssassin/Plugin/AskDNS.pm
Sending trunk/lib/Mail/SpamAssassin/Plugin/Check.pm
Sending trunk/lib/Mail/SpamAssassin/Plugin/Esp.pm
Sending trunk/lib/Mail/SpamAssassin/Plugin/FreeMail.pm
Sending trunk/lib/Mail/SpamAssassin/Plugin/HashBL.pm
Sending trunk/lib/Mail/SpamAssassin/Plugin/Phishing.pm
Sending trunk/lib/Mail/SpamAssassin/Plugin/Razor2.pm
Sending trunk/lib/Mail/SpamAssassin/Plugin/URIDNSBL.pm
Sending trunk/lib/Mail/SpamAssassin/Plugin/URILocalBL.pm
Sending trunk/t/uribl_all_types.t
Transmitting file data ..............done
Committing transaction...
Committed revision 1888466.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7824] Improve test_log() for multiple rule hits
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7824
Henrik Krohns <ap...@hege.li> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |apache@hege.li
Target Milestone|Undefined |4.0.0
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 7824] Improve test_log() for multiple rule hits
Posted by bu...@spamassassin.apache.org.
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7824
Henrik Krohns <ap...@hege.li> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS|Windows NT |All
Priority|P2 |P3
Hardware|PC |All
Severity|normal |minor
--
You are receiving this mail because:
You are the assignee for the bug.