# email.atmos.message

> ALPHA. An immutable private Comail message. Canonical RFC 5322 bytes are stored in the referenced permissioned blob; integrity and delivery metadata allow a standards-facing mailbox to be rebuilt.

- Kind: record
- Record key: any
- Authority: atmos.email
- Lexicon: 1
- Published by [comail.at](https://lexicon.garden/identity/did:plc:yu6rmwoemqfnmsdkljyvmuhg), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:yu6rmwoemqfnmsdkljyvmuhg/email.atmos.message)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yu6rmwoemqfnmsdkljyvmuhg/email.atmos.message/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yu6rmwoemqfnmsdkljyvmuhg/email.atmos.message/analytics)

## Record (`email.atmos.message`)

Type: record · key any

### Properties

- `deliveredAt` (string · datetime)
- `deliveryFingerprint` (string, required)
  - Constraints: minLength: 71, maxLength: 71
- `inReplyTo` (string)
  - Constraints: maxLength: 998
- `initialMailbox` (string, required)
  - Constraints: minLength: 1, maxLength: 255
- `logicalMessageId` (string, required): Stable identity shared by every immutable content version of one logical message. Inbound delivery may use the delivery fingerprint; draft and sent versions use a source-key-derived identity.
  - Constraints: minLength: 71, maxLength: 71
- `messageDate` (string · datetime)
- `raw` (blob, required)
  - Constraints: maxSize: 10485760, accept: message/rfc822
- `references` (array)
  - Constraints: maxLength: 100
  - `items` (string)
    - Constraints: maxLength: 998
- `sha256` (string, required)
  - Constraints: minLength: 64, maxLength: 64
- `size` (integer, required)
  - Constraints: minimum: 1, maximum: 10485760
- `sourceKey` (string): Stable opaque source identity used to preserve distinct messages with identical RFC 5322 bytes during migration.
  - Constraints: maxLength: 512
- `sourceMessageId` (string)
  - Constraints: maxLength: 998

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "ALPHA. An immutable private Comail message. Canonical RFC 5322 bytes are stored in the referenced permissioned blob; integrity and delivery metadata allow a standards-facing mailbox to be rebuilt.",
      "key": "any",
      "record": {
        "properties": {
          "deliveredAt": {
            "format": "datetime",
            "type": "string"
          },
          "deliveryFingerprint": {
            "maxLength": 71,
            "minLength": 71,
            "type": "string"
          },
          "inReplyTo": {
            "maxLength": 998,
            "type": "string"
          },
          "initialMailbox": {
            "maxLength": 255,
            "minLength": 1,
            "type": "string"
          },
          "logicalMessageId": {
            "description": "Stable identity shared by every immutable content version of one logical message. Inbound delivery may use the delivery fingerprint; draft and sent versions use a source-key-derived identity.",
            "maxLength": 71,
            "minLength": 71,
            "type": "string"
          },
          "messageDate": {
            "format": "datetime",
            "type": "string"
          },
          "raw": {
            "accept": [
              "message/rfc822"
            ],
            "maxSize": 10485760,
            "type": "blob"
          },
          "references": {
            "items": {
              "maxLength": 998,
              "type": "string"
            },
            "maxLength": 100,
            "type": "array"
          },
          "sha256": {
            "maxLength": 64,
            "minLength": 64,
            "type": "string"
          },
          "size": {
            "maximum": 10485760,
            "minimum": 1,
            "type": "integer"
          },
          "sourceKey": {
            "description": "Stable opaque source identity used to preserve distinct messages with identical RFC 5322 bytes during migration.",
            "maxLength": 512,
            "type": "string"
          },
          "sourceMessageId": {
            "maxLength": 998,
            "type": "string"
          }
        },
        "required": [
          "raw",
          "sha256",
          "size",
          "deliveryFingerprint",
          "logicalMessageId",
          "initialMailbox"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "email.atmos.message",
  "lexicon": 1
}
```
