The MacroView Corporate Email Filing (CEF) Rule Builder makes creating and editing CEF rules quick and easy.
Download the CEF Rule Builder 1.0.0.7
Overview
The tool has four main regions:
Load / Save region
The Load / Save region has four controls:
- New => Starts a new blank rule collection.
- Load => Loads an existing CEF rules XML file.
- Save => Saves the current Rules collection to a CEF rules XML file.
- Live XML Toggle => Shows (or hides) the Live Xml View region.
Rules List region
Directly below the Load / Save region is the Rules List region. This area shows the current opened Rules in the collection. Each Rule has a “Move Up” and “Move Down” button to re-order the Rule priority. When MacroView Corporate Email Filing applies the CEF rules, their priority is read from top to bottom.
Selected Rule region:
When a Rule is selected (in the Rules List region) the Rule settings will display in the “Selected Rule Region”. The Rules settings are broken into two collapsible sections:
- Rules Settings => Contains the name and general settings for the rule
- Conditions => Contains the expressions used to match a rule (discussed later).
At the top left corner of the Selected Rule region, there are two buttons:
- The green plus will create a new blank Rule and add it to the collection (to the bottom of the list).
- The red X will delete the currently selected Rule (after prompting for confirmation).
Live XML View
The last region displays a live version of the rule xml.
With the "Live XML View" option checked the XML will change automatically as changes are made to the rules. If performance issues are experienced when editing rules, the “Live Xml View” checkbox can be de-selected. Turning this off will prevent the rules collection from being serialized on every change, instead changes can be saved by using the Save button in the Load / Save region (the Live Xml View is not required for saving the rule).
Existing CEF Rules XML can also be copy / pasted into the Live Xml view to load the Rules collection (without using the Open functionality in the Load / Save region).
The XML can also be modified directly in the Live View. However, when doing so, the current rule selection will be deselected.
Creating a new CEF rule
You can create a new rule by clicking the green plus button in the top left corner of the Selected Rules region and the new rule will be added to the Rule List region. You can also create a new rule by right-clicking an existing rule and and selecting Duplicate.
Selecting a rule in the Rule List region will display the rule definition in the Selected Rules region.
In the Rule Settings section enter a name for the rule and set whether or not the rule is enabled/disabled and which emails it apples to (e.g. incoming, or both).
Next enter the Save Path for the rule. This the the location the email will be saved to if the rule conditions are met.
Adding rule conditions
There are two types of conditions that can be added to each rule:
- Standard - You can add multiple 'standard' conditions, which are similar to the conditions when defining a personal filing rule in DMF or Message
- Tag rule - You can add a SINGLE 'tag rule' condition which allows you to substitute components of the save path URL with variables extracted from a tag in the subject of the email.
Standard Conditions
To add a 'standard' condition, click the +Add condition button and to remove a standard condition click the red X to the right of the condition.
For each condition you can specify the Keywords to match, if the match is Case Sensitive, whether or not to Match Entire Words, which Property of the email to check and the Match Type (whether to match on All, Any or None of the keywords).
Standard conditions can also be reordered using the up/down arrows.
Tag Rule Conditions
To add a 'Tag rule' condition, click the +Add tag rule condition button and to remove the tag rule condition click the red X next to the Filing Tag Rule heading.
There a four steps to defining the filing tag condition:
- Define the RegEx Groups
- Define the Tag format
- Define the SavePath
- Test the condition against a sample tag and save path
Defining RegEx Groups
The default Filing Tag Rule contains a single RegEx Group named 'GroupName' which represents any 4 digits (e.g. [\d]{4}). The group name can be changed by double-clicking the group name in the right hand pane and editing the text.
The definition of each RegEx Group is defined in the Regular Expression field in the right hand pane. See this online tool for more information on how to define and test your regular expressions.
If you require two variable components in your tag and save path, such as ClientNumber and MatterNumber, an additional RegEx Group can be added by clicking the +Add RegEx Group button (Note: A maximum of two RegEx groups can be added).
To remove a RegEx Group click the red X beside the group.
Each RegEx Group will be represent with a place holder in the SavePath for the condition and in the Save Path in the Rule Setting region.
If you have added any Regular Expression text directly to the Save Path in the Rule Setting region this will automatically be displayed as an additional RegEx Group in the Tag rule condition.
Defining the Tag format
Define the tag format by adding, removing and editing the fixed text before after and between any RegEx groups in the Tag field.
Defining the SavePath
Define the save path by adding, removing and editing the fixed text before after and between any RegEx group placeholders in the SavePath field.
Enabling tags to be inserted into emails
If the Filing Tag rule contains one or more Regex Groups and you want users to be able to insert the matching tag into emails by simply selecting a matching save location check the Allow Inserting Tag option.
You may want to leave this option unchecked if the rule is for emails where the tag is inserted by some other business system or process.
Defining the tag format directly
If you are confident creating or editing the tag Regular Expression directly you can click the padlock to unlock the Keywords field to define the filing tag format.
Testing the Filing Tag Rule
The testing area of the Tag rule condition can be used to test an example (or potential) URL and tag with the current rule expressions.
If the entered URL matches the expression settings, a green tag will appear (the resulting tag CEF will use when filing to that location).
Likewise, if an example email subject matches (100%) a green tag will appear (as well as the resulting save location).
Note: If the SavePath contains any additional regex expression (as in the example above) and the rule matches, a tentative match is displayed (in orange), indicating there is a match but the save location will be dependent on search results during the run filing rules process.
Comments
0 comments
Article is closed for comments.