<!--
{
  "availability" : [
    "macOS: 12.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MailKit",
  "identifier" : "/documentation/MailKit/MEExtension/handlerForMessageActions()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "MailKit"
    ],
    "preciseIdentifier" : "c:objc(pl)MEExtension(im)handlerForMessageActions"
  },
  "title" : "handlerForMessageActions()"
}
-->

# handlerForMessageActions()

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

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

## Return Value

An object that performs actions on mail messages.

## 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.

---

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)