Table of Contents

Class UsersResource.MessagesResource.ImportRequest

Namespace
Google.Apis.Gmail.v1
Assembly
Google.Apis.Gmail.v1.dll

Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. Does not send a message. Note: This function doesn't trigger forwarding rules or filters set up by the user.

public class UsersResource.MessagesResource.ImportRequest : GmailBaseServiceRequest<Message>
Inheritance
UsersResource.MessagesResource.ImportRequest
Inherited Members

Constructors

ImportRequest(IClientService, Message, string)

Constructs a new Import request.

public ImportRequest(IClientService service, Message body, string userId)

Parameters

service IClientService
body Message
userId string

Properties

Deleted

Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for G Suite accounts.

public virtual bool? Deleted { get; set; }

Property Value

bool?

HttpMethod

Gets the HTTP method.

public override string HttpMethod { get; }

Property Value

string

InternalDateSource

Source for Gmail's internal date of the message.

public virtual UsersResource.MessagesResource.ImportRequest.InternalDateSourceEnum? InternalDateSource { get; set; }

Property Value

UsersResource.MessagesResource.ImportRequest.InternalDateSourceEnum?

MethodName

Gets the method name.

public override string MethodName { get; }

Property Value

string

NeverMarkSpam

Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox.

public virtual bool? NeverMarkSpam { get; set; }

Property Value

bool?

ProcessForCalendar

Process calendar invites in the email and add any extracted meetings to the Google Calendar for this user.

public virtual bool? ProcessForCalendar { get; set; }

Property Value

bool?

RestPath

Gets the REST path.

public override string RestPath { get; }

Property Value

string

UserId

The user's email address. The special value me can be used to indicate the authenticated user.

public virtual string UserId { get; }

Property Value

string

Methods

GetBody()

Returns the body of the request.

protected override object GetBody()

Returns

object

InitParameters()

Initializes Import parameter list.

protected override void InitParameters()