---
title: handlerForMessageActions()
framework: mailkit
role: symbol
role_heading: Instance Method
path: mailkit/meextension/handlerformessageactions()
---

# handlerForMessageActions()

Returns an object that performs actions on mail messages as the system downloads them.

## Declaration

```swift
optional func handlerForMessageActions() -> any MEMessageActionHandler
```

## Return Value

Return Value An object that performs actions on mail messages.

## Discussion

Discussion tip: Message action handlers typically don’t need any additional state to determine the actions to take on messages. Therefore, using a singleton handler instance is appropriate.
