goessel

Commodore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-10-01
12:53
302 views
spam rule with * character
Hello,
anyody knows how to use * as a string in a rule field ?
As default, * will be interpreted as a wildcard and means "all characters in this field"
in our environment there is an X-Field which declare spam-level as different quantity of *
like:
X-spam-level: **
X-spam-level: *****
Regards,
joerg
2 Replies


Knowledge Partner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-10-01
13:51
While there are likely more elegant ways: question marks should do it, you'd need a separate rule for each number of star, of course. And you'd need to use "match" as opposed to "contain".
If you like it: like it.
goessel

Commodore
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2020-10-02
08:53
that doesn't work, because external spam-engine produce another content of this field too, like:
X-spam-level: ------------
X-spam-level: /
So, I have to detect even a single * character too.
X-spam-level: *