Class UsersResource.MessagesResource.ImportRequest
Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. This method doesn't perform SPF checks, so it might not work for some spam messages, such as those attempting to perform domain spoofing. This method does not send a message.
Inheritance
Inherited Members
Namespace: Google.Apis.Gmail.v1
Assembly: Google.Apis.Gmail.v1.dll
Syntax
public class UsersResource.MessagesResource.ImportRequest : GmailBaseServiceRequest<Message>, IClientServiceRequest<Message>, IClientServiceRequest
Constructors
ImportRequest(IClientService, Message, string)
Constructs a new Import request.
Declaration
public ImportRequest(IClientService service, Message body, string userId)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| Message | body | |
| string | userId |
Properties
Deleted
Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for Google Workspace accounts.
Declaration
[RequestParameter("deleted", RequestParameterType.Query)]
public virtual bool? Deleted { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
InternalDateSource
Source for Gmail's internal date of the message.
Declaration
[RequestParameter("internalDateSource", RequestParameterType.Query)]
public virtual UsersResource.MessagesResource.ImportRequest.InternalDateSourceEnum? InternalDateSource { get; set; }
Property Value
| Type | Description |
|---|---|
| UsersResource.MessagesResource.ImportRequest.InternalDateSourceEnum? |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
NeverMarkSpam
Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox.
Declaration
[RequestParameter("neverMarkSpam", RequestParameterType.Query)]
public virtual bool? NeverMarkSpam { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
ProcessForCalendar
Process calendar invites in the email and add any extracted meetings to the Google Calendar for this user.
Declaration
[RequestParameter("processForCalendar", RequestParameterType.Query)]
public virtual bool? ProcessForCalendar { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
UserId
The user's email address. The special value me can be used to indicate the authenticated user.
Declaration
[RequestParameter("userId", RequestParameterType.Path)]
public virtual string UserId { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
| Type | Description |
|---|---|
| object |
Overrides
InitParameters()
Initializes Import parameter list.
Declaration
protected override void InitParameters()