gogol-gmail-0.0.1: Google Gmail SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Gmail.Users.Messages.Import

Contents

Description

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.

See: Gmail API Reference for gmail.users.messages.import.

Synopsis

REST Resource

type UsersMessagesImportResource = ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> ("import" :> (QueryParam "processForCalendar" Bool :> (QueryParam "deleted" Bool :> (QueryParam "neverMarkSpam" Bool :> (QueryParam "internalDateSource" UsersMessagesImportInternalDateSource :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Message :> Post `[JSON]` Message)))))))))))) :<|> ("upload" :> ("gmail" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("messages" :> ("import" :> (QueryParam "processForCalendar" Bool :> (QueryParam "deleted" Bool :> (QueryParam "neverMarkSpam" Bool :> (QueryParam "internalDateSource" UsersMessagesImportInternalDateSource :> (QueryParam "alt" AltJSON :> (QueryParam "uploadType" AltMedia :> (MultipartRelated `[JSON]` Message RequestBody :> Post `[JSON]` Message)))))))))))))) Source

A resource alias for gmail.users.messages.import method which the UsersMessagesImport request conforms to.

Creating a Request

usersMessagesImport Source

Creates a value of UsersMessagesImport with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UsersMessagesImport Source

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.

See: usersMessagesImport smart constructor.

Request Lenses

umiPayload :: Lens' UsersMessagesImport Message Source

Multipart request metadata.

umiUserId :: Lens' UsersMessagesImport Text Source

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

umiProcessForCalendar :: Lens' UsersMessagesImport Bool Source

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

umiDeleted :: Lens' UsersMessagesImport Bool Source

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

umiNeverMarkSpam :: Lens' UsersMessagesImport Bool Source

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