---
title: MEDecodedMessage
framework: mailkit
role: symbol
role_heading: Class
path: mailkit/medecodedmessage
---

# MEDecodedMessage

An object that contains the RFC 2822 data for a message, without encryption or digital signatures.

## Declaration

```swift
class MEDecodedMessage
```

## Overview

Overview When MailKit invokes your message security handler’s decodedMessage(forMessageData:) method, you decode the message data and return an instance of MEDecodedMessage that contains unencrypted MIME data.

## Topics

### Decoding Messages

- [rawData](mailkit/medecodedmessage/rawdata.md)
- [securityInformation](mailkit/medecodedmessage/securityinformation.md)

### Initializers

- [init(data:securityInformation:context:)](mailkit/medecodedmessage/init(data:securityinformation:context:).md)
- [init(data:securityInformation:context:banner:)](mailkit/medecodedmessage/init(data:securityinformation:context:banner:).md)
- [init(coder:)](mailkit/medecodedmessage/init(coder:).md)

### Instance Properties

- [banner](mailkit/medecodedmessage/banner.md)
- [context](mailkit/medecodedmessage/context.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

### Decrypting Messages and Verifying Signatures

- [MEMessageDecoder](mailkit/memessagedecoder.md)
- [MEMessageSigner](mailkit/memessagesigner.md)
- [MEMessageSecurityInformation](mailkit/memessagesecurityinformation.md)
