CreateRuleMoveFrom

InboxRule.CreateRuleMoveFrom method

Creates inbox rule that moves messages from specified senders into the specified folder

public static InboxRule CreateRuleMoveFrom(MailAddress from, string destinationFolderId)
Parameter Type Description
from MailAddress A EmailAddress of sender
destinationFolderId String An id of folder in which messages will be moved

Return Value

A created InboxRule

Exceptions

exception condition
AsposeArgumentNullException from is null
AsposeArgumentException destinationFolderId is null or empty

See Also