MarkAsJunk
The MarkAsJunk element specifies the request to move an item to the junk mail folder and to add the sender to the blocked sender list.
XML
<MarkAsJunk IsJunk="true | false" MoveItem="true | false">
<ItemIds/>
</MarkAsJunk>
MarkAsJunkType
The following sections describe attributes, child elements, and parent elements.
Attribute | Description |
---|---|
IsJunk |
A text value of true for the IsJunk attribute indicates that the email sender is added to the blocked sender list. A value of false indicates that the email sender is removed from the blocked sender list, if the email sender is already on the list. |
MoveItem |
A text value of true for the MoveItem attribute indicates that the item is moved to the default junk mail folder. A value of false indicates that the item is not moved to the default junk mail folder. |
None.
This element was introduced in Exchange Server 2013.
The schema that describes this element is located in the IIS virtual directory that hosts Exchange Web Services.
Name | Value |
---|---|
Namespace |
http://schemas.microsoft.com/exchange/services/2006/messages |
Schema name |
Messages schema |
Validation file |
messages.xsd |
Can be empty |