The following is an example of a valid RULEEDIT input file:
[Initialization]
profile=Test User 1
folder=Public Folders\IPM_SUBTREE\Test Folder
[command 1]
command=insert
position=0
condition=PR_SUBJECT = "test public store actions"
action=bounce BOUNCE_MESSAGE_SIZE_TOO_LARGE
[command 2]
command=list
[command 3]
command=delete
position=0
[command 4]
command=list
If the execution of an input file is successful, a message such as the following is displayed:
Insert command at line 5 succeeded.
Listing of rules for provider 'MSFT:RuleEdit'
in folder 'IPM_Subtree\Test' in store 'Public Folders':
Row number = 10
Rule Condition = PR_SUBJECT = "test public store actions"
Rule Action 0 = Bounce with error code BOUNCE_MESSAGE_SIZE_TOO_LARGE
Rule Action 1 = Bounce with error code BOUNCE_FORMS_MISMATCH
Rule Action 2 = Bounce with error code BOUNCE_ACCESS_DENIED
Rule state flags = Enabled
Rule Level = 10
Rule Name =
Delete command at line 10 succeeded.
Rules table is empty.
Execution completed with no errors.
The following excerpt from the .INI file inserts a new rule at position 10:
[Initialization]
profile=Test User 1
folder=Public Folders\IPM_Subtree\Test Folder
[command 1]
command=insert
position=10
condition=PR_SUBJECT = "test public store actions"
action=bounce BOUNCE_MESSAGE_SIZE_TOO_LARGE
action=bounce BOUNCE_FORMS_MISMATCH
action=bounce BOUNCE_ACCESS_DENIED
The following .INI file lists all the rules on this Inbox:
[Initialization]
profile=Test User 1
folder=Public Folders\IPM_Subtree\Test Folder
[Command 2]
command=list
The following .INI file deletes the rule at position 5.
[Initialization]
profile=Test User 1
folder=Public Folders\IPM_Subtree\Test Folder
[Command 3]
command=delete
position=5