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.

<MarkAsJunk IsJunk="true | false" MoveItem="true | false">
   <ItemIds/>
</MarkAsJunk>

MarkAsJunkType

Attributes and elements

The following sections describe attributes, child elements, and parent elements.

Attributes

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.

Child elements

ItemIds

Parent elements

None.

Remarks

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.

Element information

Name Value
Namespace
http://schemas.microsoft.com/exchange/services/2006/messages
Schema name
Messages schema
Validation file
messages.xsd
Can be empty