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. Note that the maximum size of the message is 150 MB.
Path parameters
The user's email address. The special value me can be used to indicate the authenticated user.
Query parameters
Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for Google Workspace accounts.
Source for Gmail's internal date of the message.
Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox.
Process calendar invites in the email and add any extracted meetings to the Google Calendar for this user.
Response
Successful response