Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MessagePart

import type { MessagePart } from "https://googleapis.deno.dev/v1/gmail:v1.ts";

A single MIME message part.

interface MessagePart {
filename?: string;
headers?: MessagePartHeader[];
mimeType?: string;
partId?: string;
parts?: MessagePart[];
}

§Properties

§

The message part body for this part, which may be empty for container MIME message parts.

§
filename?: string
[src]

The filename of the attachment. Only present if this message part represents an attachment.

§

List of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as To, From, and Subject.

§
mimeType?: string
[src]

The MIME type of the message part.

§
partId?: string
[src]

The immutable ID of the message part.

§

The child MIME message parts of this part. This only applies to container MIME message parts, for example multipart/*. For non- container MIME message part types, such as text/plain, this field is empty. For more information, see RFC 1521.