# at.sovrn.mail.defs

> Shared types of the mail records sovrn copies to a person's Atmosphere account (at.sovrn.mail.email, at.sovrn.mail.mailbox).

- Kind: defs
- Authority: mail.sovrn.at
- Lexicon: 1
- Published by [sovrn.at](https://lexicon.garden/identity/did:plc:54ba6vxrdbzi6nexczpk5xzb), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:54ba6vxrdbzi6nexczpk5xzb/at.sovrn.mail.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:54ba6vxrdbzi6nexczpk5xzb/at.sovrn.mail.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:54ba6vxrdbzi6nexczpk5xzb/at.sovrn.mail.defs/analytics)

## #bodyPart (`at.sovrn.mail.defs#bodyPart`)

Type: object

A subset of JMAP EmailBodyPart: enough to find the part in the raw message.

### Properties

- `cid` (string): Content-Id, without angle brackets.
  - Constraints: maxLength: 998
- `disposition` (string)
  - Constraints: maxLength: 64, knownValues: attachment | inline
- `name` (string): Decoded file name.
  - Constraints: maxLength: 1024, maxGraphemes: 256
- `partId` (string): JMAP partId, unique within the message.
  - Constraints: maxLength: 64
- `size` (integer): Decoded size in octets.
  - Constraints: minimum: 0
- `type` (string, required): Media type, lowercased (e.g. application/pdf).
  - Constraints: maxLength: 255

## #emailAddress (`at.sovrn.mail.defs#emailAddress`)

Type: object

JMAP EmailAddress.

### Properties

- `email` (string, required): The addr-spec as written in the header; not validated.
  - Constraints: maxLength: 998
- `name` (string): Decoded display name.
  - Constraints: maxLength: 1024, maxGraphemes: 256

## #emailSource (`at.sovrn.mail.defs#emailSource`)

Type: object

Identifiers in the sovrn mailbox the message was copied from. Valid only there: they can change if the mailbox is rebuilt.

### Properties

- `blobId` (string): JMAP blobId of the raw message.
  - Constraints: maxLength: 255
- `emailId` (string, required): JMAP Email id.
  - Constraints: maxLength: 255
- `threadId` (string): JMAP threadId.
  - Constraints: maxLength: 255

## #mailboxSource (`at.sovrn.mail.defs#mailboxSource`)

Type: object

Identifiers in the sovrn mailbox the folder was copied from. Valid only there.

### Properties

- `mailboxId` (string, required): JMAP Mailbox id.
  - Constraints: maxLength: 255

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "bodyPart": {
      "description": "A subset of JMAP EmailBodyPart: enough to find the part in the raw message.",
      "properties": {
        "cid": {
          "description": "Content-Id, without angle brackets.",
          "maxLength": 998,
          "type": "string"
        },
        "disposition": {
          "knownValues": [
            "attachment",
            "inline"
          ],
          "maxLength": 64,
          "type": "string"
        },
        "name": {
          "description": "Decoded file name.",
          "maxGraphemes": 256,
          "maxLength": 1024,
          "type": "string"
        },
        "partId": {
          "description": "JMAP partId, unique within the message.",
          "maxLength": 64,
          "type": "string"
        },
        "size": {
          "description": "Decoded size in octets.",
          "minimum": 0,
          "type": "integer"
        },
        "type": {
          "description": "Media type, lowercased (e.g. application/pdf).",
          "maxLength": 255,
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "emailAddress": {
      "description": "JMAP EmailAddress.",
      "properties": {
        "email": {
          "description": "The addr-spec as written in the header; not validated.",
          "maxLength": 998,
          "type": "string"
        },
        "name": {
          "description": "Decoded display name.",
          "maxGraphemes": 256,
          "maxLength": 1024,
          "type": "string"
        }
      },
      "required": [
        "email"
      ],
      "type": "object"
    },
    "emailSource": {
      "description": "Identifiers in the sovrn mailbox the message was copied from. Valid only there: they can change if the mailbox is rebuilt.",
      "properties": {
        "blobId": {
          "description": "JMAP blobId of the raw message.",
          "maxLength": 255,
          "type": "string"
        },
        "emailId": {
          "description": "JMAP Email id.",
          "maxLength": 255,
          "type": "string"
        },
        "threadId": {
          "description": "JMAP threadId.",
          "maxLength": 255,
          "type": "string"
        }
      },
      "required": [
        "emailId"
      ],
      "type": "object"
    },
    "mailboxSource": {
      "description": "Identifiers in the sovrn mailbox the folder was copied from. Valid only there.",
      "properties": {
        "mailboxId": {
          "description": "JMAP Mailbox id.",
          "maxLength": 255,
          "type": "string"
        }
      },
      "required": [
        "mailboxId"
      ],
      "type": "object"
    }
  },
  "description": "Shared types of the mail records sovrn copies to a person's Atmosphere account (at.sovrn.mail.email, at.sovrn.mail.mailbox).",
  "id": "at.sovrn.mail.defs",
  "lexicon": 1
}
```
