Bug 7047 - Add a new tag to generate a report or a summary with sorted scores
Summary: Add a new tag to generate a report or a summary with sorted scores
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamassassin (show other bugs)
Version: unspecified
Hardware: All All
: P2 enhancement
Target Milestone: 4.0.0
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-04 08:16 UTC by michel.poleur
Modified: 2019-06-15 21:14 UTC (History)
4 users (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 michel.poleur 2014-06-04 08:16:35 UTC
Here is the output for the _REPORT_ tag :

X-Spam-Report: 0.5 / 5.0  --  
 * -0.0 SPF_PASS SPF: sender matches SPF record
 * -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain
 *  1.2 MISSING_HEADERS Missing To: header
 *  0.0 HTML_MESSAGE BODY: HTML included in message
 * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
 *       domain
 * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
 *  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
 *      valid
 *  0.0 T_FSL_HELO_BARE_IP_2 T_FSL_HELO_BARE_IP_2

A new tag would sort the individual score from highest to lowest :

X-Spam-Report: 0.5 / 5.0  --  
 *  1.2 MISSING_HEADERS Missing To: header
 *  0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily
 *      valid
 *  0.0 HTML_MESSAGE BODY: HTML included in message
 *  0.0 T_FSL_HELO_BARE_IP_2 T_FSL_HELO_BARE_IP_2
 * -0.0 SPF_PASS SPF: sender matches SPF record
 * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
 *       domain
 * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
 * -0.7 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain

Same request for _SUMMARY_
Comment 1 Kevin A. McGrail 2018-08-29 02:35:30 UTC
So _REPORT_SORT_BY_SCORE_ or something?
Comment 2 michel.poleur 2018-09-04 14:41:00 UTC
Yes, _REPORT_SORT_BY_SCORE_ seems perfect.