RDORuleAction object |
RDORuleAction object represents an action that is run when the parent rule (RDORule object) is executed.
Returned by:
RDORuleActions.AssignToCategory, RDORuleActions.Bounce, RDORuleActions.CopyToFolder, RDORuleActions.Defer, RDORuleActions.Delete, RDORuleActions.DeletePermanently, RDORuleActions.Forward, RDORuleActions.ForwardAsAttachment, RDORuleActions.Importance, RDORuleActions.MarkAsRead, RDORuleActions.MoveToFolder, RDORuleActions.Redirect, RDORuleActions.Reply, RDORuleActions.Sensitivity, RDORuleActions.Tag
The following objects are derived from RDORuleAction to represent specific actions that expose additional properties besides ActionType and Enabled.
The example below creates a rule that sets the message importance to High if the incoming message has the "x-test-header" MIME header
'Constant definitions, don't
need these if Redemption is added to the project references.
'create the rule set
Session = CreateObject("Redemption.RDOSession")
'set the action
'set the restriction on message headers
set Restriction = Rule.SetRawConditionsKind(RES_CONTENT)
'enable and save the rule |
Derived from: IDispatch |
||
|
||
Properties |
||
|
||
ActionFlavor |
integer, read/write. Provides direct access to the Action.ulActionFlavor MAPI structure member.
|
|
ActionType |
Returns the action type, read-only.
Can be one of the following rdoRuleActionType enums: olRuleActionUnknown = 0
|
|
Enabled |
Boolean, read/write. Enables or disables the action.
|
|
Flags |
integer, read/write. Provides direct access to the Action.ulFlags MAPI structure member.
|
|
RDORuleActionMoveOrCopy object |
RDORuleActionMoveOrCopy object represents an action that copies or moves the message when the parent rule (RDORule object) is executed.
RDORuleActionMoveOrCopy is derived from the RDORuleAction object and inherits its properties ActionType and Enabled.
Returned by:
RDORuleActions.CopyToFolder, RDORuleActions.MoveToFolder
Derived from: RDORuleActionproperties derived from RDORuleAction: ActionType Enabled |
||
|
||
Properties |
||
|
||
Folder |
Returns or sets the folder (RDOFolder object) |
set Session =
CreateObject("Redemption.RDOSession")
|
RDORuleActionSend object |
RDORuleActionSend object represents an action that sends a message to the specified recipient when the parent rule (RDORule object) is executed.
RDORuleActionSend is derived from the RDORuleAction object and inherits its properties ActionType and Enabled.
Returned by:
RDORuleActions.Forward, RDORuleActions.ForwardAsAttachment, RDORuleActions.Redirect
Derived from: RDORuleActionproperties derived from RDORuleAction: ActionType Enabled |
||
|
||
Properties |
||
|
||
Recipients |
Returns the list of recipient (RDORecipients) to whom the message will be sent when the rule action is executed. |
set Session =
CreateObject("Redemption.RDOSession")
|
RDORuleActionTemplate object |
RDORuleActionTemplate object represents an action that sends a reply using the specified template when the parent rule (RDORule object) is executed.
RDORuleActionTemplate is derived from the RDORuleAction object and inherits its properties ActionType and Enabled.
Returned by:
RDORuleActions.Reply
Derived from: RDORuleActionproperties derived from RDORuleAction: ActionType Enabled |
||
|
||
Properties |
||
|
||
TemplateMessage |
Returns or sets the message (RDOMail) to be used as a template when the action is executed |
set Session =
CreateObject("Redemption.RDOSession")
|
RDORuleActionAssignToCategory object |
RDORuleActionAssignToCategory object represents an action that assigns the specified category or categories to a message when the parent rule (RDORule object) is executed.
RDORuleActionAssignToCategory is derived from the RDORuleAction object and inherits its properties ActionType and Enabled.
Returned by:
RDORuleActions.AssignToCategory
Derived from: RDORuleActionproperties derived from RDORuleAction: ActionType Enabled |
||
|
||
Properties |
||
|
||
Categories |
String, read/write. Returns or sets the category or categories assigned to a message when the action is executed. Separate multiple categories with ";" if multiple categories must be used. |
set Session =
CreateObject("Redemption.RDOSession")
|
RDORuleActionImportance object |
RDORuleActionImportance object represents an action that assigns the specified importance to a message when the parent rule (RDORule object) is executed.
RDORuleActionImportance is derived from the RDORuleAction object and inherits its properties ActionType and Enabled.
Returned by:
RDORuleActions.Importance
Derived from: RDORuleActionproperties derived from RDORuleAction: ActionType Enabled |
||
|
||
Properties |
||
|
||
Importance |
rdoImportance, read/write. Returns or sets the importance assigned to a message when the action is executed. Can be one of the following rdoImportance enums:
olImportanceLow = 0 |
set Session =
CreateObject("Redemption.RDOSession")
|
RDORuleActionSensitivity object |
RDORuleActionSensitivity object represents an action that assigns the specified sensitivity to a message when the parent rule (RDORule object) is executed.
RDORuleActionSensitivity is derived from the RDORuleAction object and inherits its properties ActionType and Enabled.
Returned by:
RDORuleActions.Sensitivity
Derived from: RDORuleActionproperties derived from RDORuleAction: ActionType Enabled |
||
|
||
Properties |
||
|
||
Sensitivity |
rdoSensitivity, read/write. Returns or sets the sensitivity assigned to a message when the action is executed. Can be one of the following rdoSensitivity enums:
olNormal = 0 |
set Session =
CreateObject("Redemption.RDOSession")
|
RDORuleActionDefer object |
RDORuleActionDefer object represents an action that creates a deferred action message to be processed later by a client side rule when the parent rule (RDORule object) is executed.
RDORuleActionDefer is derived from the RDORuleAction object and inherits its properties ActionType and Enabled.
Returned by:
RDORuleActions.Defer
Derived from: RDORuleActionproperties derived from RDORuleAction: ActionType Enabled |
||
|
||
Properties |
||
|
||
Data |
String, read/write. Returns or sets the data to be set on the deferred action message created when the parent rule is executed. Data must be a string representing the binary data in hex, i.e. each byte of the data is represented by 2 hex characters. |
set Session =
CreateObject("Redemption.RDOSession")
|
RDORuleActionBounce object |
RDORuleActionBounce object represents an action that bounces (creates a bounce message) when the parent rule (RDORule object) is executed.
RDORuleActionBounce is derived from the RDORuleAction object and inherits its properties ActionType and Enabled.
Returned by:
RDORuleActions.Bounce
Derived from: RDORuleActionproperties derived from RDORuleAction: ActionType Enabled |
||
|
||
Properties |
||
|
||
BounceCode |
rdoBounceCode, read/write. Returns or sets the bounce code.
Can be one of the rdoBounceCode enums: bcMessageSizeTooLarge = 13 |
set Session =
CreateObject("Redemption.RDOSession")
|
RDORuleActionTag object |
RDORuleActionTag object represents an action that tags (set the specified property to the specified value) when the parent rule (RDORule object) is executed.
RDORuleActionTag is derived from the RDORuleAction object and inherits its properties ActionType and Enabled.
Returned by:
RDORuleActions.Tag
Derived from: RDORuleActionproperties derived from RDORuleAction: ActionType Enabled |
||
|
||
Properties |
||
|
||
PropTag |
Integer, read/write. Property tag to be set, such
as PR_SUBJECT (= 0x0037001E). |
|
Value |
Variant, read/write. The value of the property to be set. The Value type must match the property type. E.g. for the PR_SUBJECT (property type is PT_STRING8), Value must be string. |
set Session =
CreateObject("Redemption.RDOSession") |