# `bird email inbound-messages raw`

## Usage

```bash
bird email inbound-messages raw <inbound-message-id> [flags]
```

## Description

Download a received email's original bytes in RFC 5322 (MIME) format — the
message exactly as it arrived, not the parsed fields. Use get for parsed
metadata and body for the parsed HTML/text.

The bytes are written to --output when set, otherwise to stdout; redirect or
pass --output to save a file:

bird email inbound-messages raw rem_123 --output message.eml

## Examples

```bash
bird email inbound-messages raw <id> --output message.eml
```

## Options

| Name           | Description                                    |
| -------------- | ---------------------------------------------- |
| `--output, -o` | Write the bytes to this file instead of stdout |

## Related

| Name                                                                                                | Description                            |
| --------------------------------------------------------------------------------------------------- | -------------------------------------- |
| [`bird email inbound-messages attachment`](/docs/cli/reference/email-inbound-messages-attachment)   | Download a received email's attachment |
| [`bird email inbound-messages attachments`](/docs/cli/reference/email-inbound-messages-attachments) | List a received email's attachments    |
| [`bird email inbound-messages body`](/docs/cli/reference/email-inbound-messages-body)               | Get a received email's body            |
| [`bird email inbound-messages get`](/docs/cli/reference/email-inbound-messages-get)                 | Get a received email                   |
| [`bird email inbound-messages list`](/docs/cli/reference/email-inbound-messages-list)               | List received emails                   |