/gmail/v1/users/{userId}/messages/import
POST
/gmail/v1/users/{userId}/messages/importImports 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: This function doesn't trigger forwarding rules or filters set up by the user.
Request
The user's email address. The special value me
can be used to indicate the authenticated user.
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.