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

ImapSettings

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

IMAP settings for an account.

interface ImapSettings {
autoExpunge?: boolean;
enabled?: boolean;
expungeBehavior?:
| "expungeBehaviorUnspecified"
| "archive"
| "trash"
| "deleteForever";
maxFolderSize?: number;
}

§Properties

§
autoExpunge?: boolean
[src]

If this value is true, Gmail will immediately expunge a message when it is marked as deleted in IMAP. Otherwise, Gmail will wait for an update from the client before expunging messages marked as deleted.

§
enabled?: boolean
[src]

Whether IMAP is enabled for the account.

§
expungeBehavior?: "expungeBehaviorUnspecified" | "archive" | "trash" | "deleteForever"
[src]

The action that will be executed on a message when it is marked as deleted and expunged from the last visible IMAP folder.

§
maxFolderSize?: number
[src]

An optional limit on the number of messages that an IMAP folder may contain. Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero is interpreted to mean that there is no limit.