Bug 7586 - Lint does not detect/report unsupported modifiers
Summary: Lint does not detect/report unsupported modifiers
Status: RESOLVED FIXED
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: spamassassin (show other bugs)
Version: SVN Trunk (Latest Devel Version)
Hardware: PC Linux
: P2 normal
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-23 00:11 UTC by John Hardin
Modified: 2021-04-08 09:34 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 John Hardin 2018-05-23 00:11:46 UTC
If an unsupported modifier is used on a rule, lint will not catch it and the rule will not behave as expected.

Example:

  header  __LINT_MODIF_UNSUPP  From:address =~ /.*/i

More generally:

  header  __LINT_MODIF_UNSUPP  From:fnord =~ /.*/i
Comment 1 Henrik Krohns 2021-04-08 09:34:23 UTC
Added validation.

Sending        trunk/lib/Mail/SpamAssassin/Conf/Parser.pm
Transmitting file data .done
Committing transaction...
Committed revision 1888508.