IEWSClient.MarkAsJunk

MarkAsJunk(bool, params string[])

The MarkAsJunk method moves mail messages to the junk mail folder and blocks message sender.

public string[] MarkAsJunk(bool isJunk, params string[] messageUriEn)
ParameterTypeDescription
isJunkBooleanIndicates, whether messages is marked as junk mail. If value of true adds message sender to the block-list. If value of false removes message sender from the block-list.
messageUriEnString[]Array of message uri

Return Value

Returns the array of message ID which are moved to the junk mail folder.

See Also


MarkAsJunk(bool, bool, params string[])

The MarkAsJunk method moves mail messages to the junk mail folder and blocks message sender.

public string[] MarkAsJunk(bool isJunk, bool moveItem, params string[] messageUriEn)
ParameterTypeDescription
isJunkBooleanIndicates, whether messages is marked as junk mail. If value of true adds message sender to the block-list. If value of false removes message sender from the block-list.
moveItemBooleanIndicates, whether messages is moved to the junk mail folder.
messageUriEnString[]Array of message uri

Return Value

Returns the array of message ID which are moved to the junk mail folder.

See Also


MarkAsJunk(bool, IEnumerable<string>)

The MarkAsJunk method moves mail messages to the junk mail folder and blocks message sender.

public string[] MarkAsJunk(bool isJunk, IEnumerable<string> messageUriEn)
ParameterTypeDescription
isJunkBooleanIndicates, whether messages is marked as junk mail. If value of true adds message sender to the block-list. If value of false removes message sender from the block-list.
messageUriEnIEnumerable`1Enumeration of message uri

Return Value

Returns the item ID of the message marked as junk mail.

See Also


MarkAsJunk(bool, bool, IEnumerable<string>)

The MarkAsJunk method moves mail messages to the junk mail folder and blocks message sender.

public string[] MarkAsJunk(bool isJunk, bool moveItem, IEnumerable<string> messageUriEn)
ParameterTypeDescription
isJunkBooleanIndicates, whether messages is marked as junk mail. If value of true adds message sender to the block-list. If value of false removes message sender from the block-list.
moveItemBooleanIndicates, whether messages is moved to the junk mail folder.
messageUriEnIEnumerable`1Enumeration of message uri

Return Value

Returns the array of message ID which are moved to the junk mail folder.

See Also


MarkAsJunk(bool, bool, IEnumerable<string>, out string[], out string[], out string[])

The MarkAsJunk method moves mail messages to the junk mail folder and blocks message sender.

public void MarkAsJunk(bool isJunk, bool moveItem, IEnumerable<string> messageUriEn, 
    out string[] movedMessageIds, out string[] failedMessageIds, out string[] errorMessages)
ParameterTypeDescription
isJunkBooleanIndicates, whether messages is marked as junk mail. If value of true adds message sender to the block-list. If value of false removes message sender from the block-list.
moveItemBooleanIndicates, whether messages is moved to the junk mail folder.
messageUriEnIEnumerable`1Enumeration of message uri
movedMessageIdsString[]&Returns the array of message ID which are moved to the junk mail folder.
failedMessageIdsString[]&Returns the array of message ID which haven’t been moved to the junk mail folder.
errorMessagesString[]&Error messages for failed operations

See Also