<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MailKit",
  "identifier" : "/documentation/MailKit/MEMessageAction",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MailKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MEMessageAction"
  },
  "title" : "MEMessageAction"
}
-->

# MEMessageAction

An action the system performs on a message, such as setting a color or archiving it.

```
class MEMessageAction
```

## Topics

### Changing the Read Status

[`markAsReadAction`](/documentation/MailKit/MEMessageAction/markAsRead)

An object that marks the message as read.

[`markAsUnreadAction`](/documentation/MailKit/MEMessageAction/markAsUnread)

An object that marks the message as unread.

### Transferring Messages

[`moveToArchiveAction`](/documentation/MailKit/MEMessageAction/moveToArchive)

An object that moves the message to the account’s Archive mailbox.

[`moveToJunkAction`](/documentation/MailKit/MEMessageAction/moveToJunk)

An object that moves the message to the account’s Junk mailbox.

[`moveToTrashAction`](/documentation/MailKit/MEMessageAction/moveToTrash)

An object that moves the message to the account’s Trash mailbox.

### Type Methods

[`+  flagActionWithFlag:`](/documentation/MailKit/MEMessageAction/flag(_:))

[`+  setBackgroundColorActionWithColor:`](/documentation/MailKit/MEMessageAction/setBackgroundColor(_:))

### Enumerations

[`Flag`](/documentation/MailKit/MEMessageAction/Flag)

[`MessageColor`](/documentation/MailKit/MEMessageAction/MessageColor)

A color that the system uses to display a message in the message list.

## Relationships

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)