RDORuleActions object |
RDORuleActions represents a list of actions of a particular rule (RDORule).
Returned by:
RDORule.Actions
The example below opens the store of the "natalia" user and creates a rule that will copy all incoming message that have the "x-test-header" MIME header to a folder named "Test subfolder", which is a child of the Inbox folder.
'Constant definitions, don't
need these if Redemption is added to the project references.
set Session = CreateObject("Redemption.RDOSession")
'set the conditions:
|
Derived from: IDispatch |
|||
|
|||
Properties |
|||
|
|||
AssignToCategory |
Returns RDORuleActionAssignToCategory object. Represents an action that assigns categories to a message. |
set Session =
CreateObject("Redemption.RDOSession")
|
|
Bounce |
Returns RDORuleActionBounce object. Represents an action that bounces a message with the specified bounce code (e.g. bcMessageSizeTooLarge, bcFormsMismatch, bcAccessDenied).
|
set Session =
CreateObject("Redemption.RDOSession")
|
|
CopyToFolder |
Returns RDORuleActionMoveOrCopy object. Represents an action that copies a message to the specified folder.
|
set Session =
CreateObject("Redemption.RDOSession")
|
|
Count |
Integer, read-only. Returns the number of enabled action for the rule.
|
||
Defer |
Returns RDORuleActionDefer object. Represents an action that creates a deferred action message to be later processed by a client side rule. |
set Session =
CreateObject("Redemption.RDOSession")
|
|
Delete |
Returns RDORuleAction object. Represents an action that moves a message to the Deleted Items folder.
|
set Session =
CreateObject("Redemption.RDOSession")
|
|
DeletePermanently |
Returns RDORuleAction object. Represents an action that permanently deletes a message. Important: do not forget to set the conditions on the parent rule; otherwise *all* incoming messages will be deleted. |
set Session =
CreateObject("Redemption.RDOSession")
|
|
Forward |
Returns RDORuleActionSend object. Represents an action that forwards a message to the specified recipient.
|
set Session =
CreateObject("Redemption.RDOSession")
|
|
ForwardAsAttachment |
Returns RDORuleActionSend object. Represents an action that forwards a message as an embedded attachment to the specified recipient. |
set Session =
CreateObject("Redemption.RDOSession")
|
|
Importance |
Returns RDORuleActionImportance object. Represents an action that assigned the specified importance to the message.
|
set Session =
CreateObject("Redemption.RDOSession")
|
|
_Item[Index] |
Returns an action (RDOAction object) with the specified index (1 through Count). Default property
|
|
|
MarkAsRead |
Returns RDORuleAction object. Represents an action that marks the message as read.
|
set Session =
CreateObject("Redemption.RDOSession") Action.Enabled = true
|
|
MoveToFolder |
Returns
RDORuleActionMoveOrCopy object. Represents an action that moves a
message to the specified folder. |
set Session = CreateObject("Redemption.RDOSession") Session.Logon set Store = Session.Stores.GetSharedMailbox("natalia") set Inbox = Store.GetDefaultFolder(olFolderInbox) on error resume next err.clear set SubFolder = Inbox.Folders("Test Subfolder") if (err.Number <> 0) or (SubFolder Is Nothing) Then set SubFolder = Inbox.Folders.Add("Test Subfolder") End If set Rules = Store.Rules set Rule = Rules.Create("Test move to folder") set Action = Rule.Actions.MoveToFolder Action.Folder = SubFolder Action.Enabled = true Rule.Enabled = true Rule.Save
|
|
Redirect |
Returns RDORuleActionSend object. Represents an action that redirects a message to the specified recipient. |
set Session =
CreateObject("Redemption.RDOSession")
|
|
Reply |
Returns RDORuleActionTemplate object. Represents an action that replies to a message with the specified template message.
|
set Session =
CreateObject("Redemption.RDOSession")
|
|
Sensitivity |
Returns RDORuleActionSensitivity object. Represents an action that assigned the specified sensitivity to the message.
|
set Session =
CreateObject("Redemption.RDOSession")
|
|
Tag |
Returns RDORuleActionTag object. Represents an action that tags (sets the specified property) to a message |
set Session =
CreateObject("Redemption.RDOSession")
|
|
Methods |
|||
|
|||
Item(Index) |
Returns an action (RDOAction object) with the specified index (1 through Count).
|
||
|