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

FilterCriteria

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

Message matching criteria.

interface FilterCriteria {
excludeChats?: boolean;
from?: string;
hasAttachment?: boolean;
negatedQuery?: string;
query?: string;
size?: number;
sizeComparison?: "unspecified" | "smaller" | "larger";
subject?: string;
to?: string;
}

§Properties

§
excludeChats?: boolean
[src]

Whether the response should exclude chats.

§
from?: string
[src]

The sender's display name or email address.

§
hasAttachment?: boolean
[src]

Whether the message has any attachment.

§
negatedQuery?: string
[src]

Only return messages not matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser@example.com rfc822msgid: is:unread".

§
query?: string
[src]

Only return messages matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser@example.com rfc822msgid: is:unread".

§
size?: number
[src]

The size of the entire RFC822 message in bytes, including all headers and attachments.

§
sizeComparison?: "unspecified" | "smaller" | "larger"
[src]

How the message size in bytes should be in relation to the size field.

§
subject?: string
[src]

Case-insensitive phrase found in the message's subject. Trailing and leading whitespace are be trimmed and adjacent spaces are collapsed.

§
to?: string
[src]

The recipient's display name or email address. Includes recipients in the "to", "cc", and "bcc" header fields. You can use simply the local part of the email address. For example, "example" and "example@" both match "example@gmail.com". This field is case-insensitive.