MessagePart
import type { MessagePart } from "https://googleapis.deno.dev/v1/gmail:v1.ts";
A single MIME message part.
interface MessagePart {
body?: MessagePartBody;
filename?: string;
headers?: MessagePartHeader[];
mimeType?: string;
partId?: string;
parts?: MessagePart[];
}§Properties
§
body?: MessagePartBody
[src]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.
§
headers?: MessagePartHeader[]
[src]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
.
§
parts?: MessagePart[]
[src]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.