<!--
{
  "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

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

An object that marks the message as read.

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

An object that marks the message as unread.

### Transferring Messages

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

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

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

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

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

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

### Type Methods

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

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

### Enumerations

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

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

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



---

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)