• Rules

    By Dave Mulvey 2 decades ago

    A couple of questions regarding rules…..



    The various fields (subject, body, etc.), if I were to fill in more than one field within the same rule, would the text in all the fields need to be matched (logical AND), or would it be text in any of them (logical OR)?



    Do the contents of the field have to be an exact match, or can you seperate multiple values with commas, or enclose phrases with quotes (e.g. drugs, viagra, "enhance your").



    Regular expressions - I've had a bash with these, but am struggling with how to have phrases which include reserved characters. For example, how would I check for either the phrase spam.com or junk.net with the full-stop being a reserved character? Surely '#REGEX#:spam.com|junk.com' isn't correct?



    What about the phrase XP Professional - $ or//ATCHES? Would that be '#REGEX#:XP Professional - $|//ATCHES'?

    • By Marco MP Panigada 2 decades ago

      Hi Dave,

      about your first question the text in all the fields need to be matched so it is a logical AND, if you try to create a rule where the subject contains "mobile" and body conatins "phone" you will see that kspam will block only mails containing the exact subject and body.



      So, when you create a rule the content of th field have to be an exact match, you cannot use multiple values. if you create a rule based on your e.g. and you send a mail with subject drugs,viagra this mail doesn't match the rule that you created before.



      About regular expression it seems not working properly. You have to test them.



      Best regards.