Commodore
Commodore
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

 

0 Likes
2 Replies
Knowledge Partner Knowledge Partner
Knowledge Partner

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.
0 Likes
Commodore
Commodore

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: *

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.