Difference between revisions of "Blocking Character Sets"

From Roaring Penguin
Jump to: navigation, search
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
It is possible to block messages based on character set names.
 
It is possible to block messages based on character set names.
  
In the web user interface go to Rules->Compound Rules page and enter:
+
In the web user interface go to Rules->Custom Rules (Compound Rules prior to version 10.1.0) page and then click on the link "Add an Advanced Rule". Enter:
  
   IF Subject Matches Regexp  \p{yyyy} OR
+
   IF Subject Matches Regexp  \p{yyyy}
    Body    Matches Regexp   \p{yyyy}
+
   Comment: cc
   THEN add x points
+
   Score: xx
  
where
+
Then click on "Update". When the page updates click on "+ New Clause" in the "Logical Operator" column. This will bring up a blank second filtering clause. Set the "Logical Operator" to "OR" and enter the second clause as below:
* x is a suitable value dependent on your objectives, and,
+
 
 +
  IF Body    Matches Regexp  \p{yyyy}
 +
 
 +
Then click on "Update and Save"
 +
 
 +
Where in the above:
 +
* cc is an optional comment
 +
* xx is a suitable value dependent on your objectives, and,
 
* yyyy is one of:
 
* yyyy is one of:
 
** CJK_Unified_Ideographs - for Chinese, Japanese or Korean
 
** CJK_Unified_Ideographs - for Chinese, Japanese or Korean
 
** Arabic - for Arabic script
 
** Arabic - for Arabic script
 
** Cyrillic - for Cyrillic (Russian)
 
** Cyrillic - for Cyrillic (Russian)
 +
** Script=Hebrew - for Hebrew script
 +
** A unicode range such as:
 +
*** So - "Symbol, other"
  
 
This only works with CanIt 9.0.6 and above.  
 
This only works with CanIt 9.0.6 and above.  
 
<div style="float:right; clear:both; margin-right:0.5em">[[Support Wiki | [Home]]]</div>
 
<div style="float:right; clear:both; margin-right:0.5em">[[Support Wiki | [Home]]]</div>
 
[[category:All]][[category:Rules]][[category:Configuration]]
 
[[category:All]][[category:Rules]][[category:Configuration]]

Latest revision as of 15:48, 20 July 2017

It is possible to block messages based on character set names.

In the web user interface go to Rules->Custom Rules (Compound Rules prior to version 10.1.0) page and then click on the link "Add an Advanced Rule". Enter:

 IF Subject Matches Regexp   \p{yyyy}
 Comment: cc
 Score: xx

Then click on "Update". When the page updates click on "+ New Clause" in the "Logical Operator" column. This will bring up a blank second filtering clause. Set the "Logical Operator" to "OR" and enter the second clause as below:

 IF Body    Matches Regexp   \p{yyyy}

Then click on "Update and Save"

Where in the above:

  • cc is an optional comment
  • xx is a suitable value dependent on your objectives, and,
  • yyyy is one of:
    • CJK_Unified_Ideographs - for Chinese, Japanese or Korean
    • Arabic - for Arabic script
    • Cyrillic - for Cyrillic (Russian)
    • Script=Hebrew - for Hebrew script
    • A unicode range such as:
      • So - "Symbol, other"

This only works with CanIt 9.0.6 and above.