AutoForwarding

Auto-forwarding settings for an account.

JSON representation
{
  "enabled": boolean,
  "emailAddress": string,
  "disposition": enum (Disposition)
}
Fields
enabled

boolean

Whether all incoming mail is automatically forwarded to another address.

emailAddress

string

Email address to which all incoming messages are forwarded. This email address must be a verified member of the forwarding addresses.

disposition

enum (Disposition)

The state that a message should be left in after it has been forwarded.

Disposition

Specifies what Gmail should do with a message after it has been automatically forwarded.

Enums
DISPOSITION_UNSPECIFIED Unspecified disposition.
LEAVE_IN_INBOX Leave the message in the INBOX.
ARCHIVE Archive the message.
TRASH Move the message to the TRASH.
MARK_READ Leave the message in the INBOX and mark it as read.