---
title: MEMessageAction
framework: mailkit
role: symbol
role_heading: Class
path: mailkit/memessageaction
---

# MEMessageAction

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

## Declaration

```swift
class MEMessageAction
```

## Topics

### Changing the Read Status

- [markAsRead](mailkit/memessageaction/markasread.md)
- [markAsUnread](mailkit/memessageaction/markasunread.md)

### Transferring Messages

- [moveToArchive](mailkit/memessageaction/movetoarchive.md)
- [moveToJunk](mailkit/memessageaction/movetojunk.md)
- [moveToTrash](mailkit/memessageaction/movetotrash.md)

### Type Methods

- [flag(_:)](mailkit/memessageaction/flag(_:).md)
- [setBackgroundColor(_:)](mailkit/memessageaction/setbackgroundcolor(_:).md)

### Enumerations

- [MEMessageAction.Flag](mailkit/memessageaction/flag.md)
- [MEMessageAction.MessageColor](mailkit/memessageaction/messagecolor.md)

### Initializers

- [init(coder:)](mailkit/memessageaction/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Performing Actions on Messages

- [decideAction(for:completionHandler:)](mailkit/memessageactionhandler/decideaction(for:completionhandler:).md)
- [MEMessageActionDecision](mailkit/memessageactiondecision.md)
- [MEMessageAction.MessageColor](mailkit/memessageaction/messagecolor.md)
