MarkAsJunk

IEWSClient.MarkAsJunk method (1 of 5)

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

public string[] MarkAsJunk(bool isJunk, params string[] messageUriEn)
Parameter Type Description
isJunk Boolean Indicates, 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.
messageUriEn String[] Array of message uri

Return Value

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

See Also


IEWSClient.MarkAsJunk method (2 of 5)

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)
Parameter Type Description
isJunk Boolean Indicates, 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.
moveItem Boolean Indicates, whether messages is moved to the junk mail folder.
messageUriEn String[] Array of message uri

Return Value

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

See Also


IEWSClient.MarkAsJunk method (3 of 5)

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

public string[] MarkAsJunk(bool isJunk, IEnumerable<string> messageUriEn)
Parameter Type Description
isJunk Boolean Indicates, 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.
messageUriEn IEnumerable`1 Enumeration of message uri

Return Value

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

See Also


IEWSClient.MarkAsJunk method (4 of 5)

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)
Parameter Type Description
isJunk Boolean Indicates, 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.
moveItem Boolean Indicates, whether messages is moved to the junk mail folder.
messageUriEn IEnumerable`1 Enumeration of message uri

Return Value

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

See Also


IEWSClient.MarkAsJunk method (5 of 5)

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)
Parameter Type Description
isJunk Boolean Indicates, 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.
moveItem Boolean Indicates, whether messages is moved to the junk mail folder.
messageUriEn IEnumerable`1 Enumeration of message uri
movedMessageIds String[]& Returns the array of message ID which are moved to the junk mail folder.
failedMessageIds String[]& Returns the array of message ID which haven’t been moved to the junk mail folder.
errorMessages String[]& Error messages for failed operations

See Also