]> source.dussan.org Git - rspamd.git/commit
[Feature] Rework composite rules application
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Mar 2016 14:14:04 +0000 (14:14 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Mar 2016 14:14:04 +0000 (14:14 +0000)
commit4502a6e8dfa44915e26774002b5cd10e537ce27d
tree1899ea9d9bb87613c9cd1dfbf1d5839f28f01ae6
parentfb236b262fab5adb864b2766910a80590c12611a
[Feature] Rework composite rules application

First of all exclude all elements with any parent that is negation:
`!A || B` -> here we can have both !A and B matched, but we do *NOT*
want to remove symbol in that case.

 We apply the following logic subsequently:
- if no composites would like to save score then we remove score
- if no composites would like to save symbol then we remove symbol
src/libserver/composites.c