Search all mailboxes - Gmail with polling

This playbook searches Gmail records for all Google users, designed for large companies with over 2500 Google users.

Gmail · 4 tasks · 12 inputs · 13 outputs

Inputs

  • after — Search for messages sent after a specific date. For example, 2018/05/06
  • before — Search for messages sent before a specific date. For example, 2018/05/09
  • fields — Enables partial responses to be retrieved in a comma-separated list. For more information, see https://developers.google.com/gdata/docs/2.0/basics#PartialResponse.
  • filename — Attachments with a certain name or file type. For example, "pdf" or "report.pdf"
  • from — Specifies the sender. For example, "john"
  • to — Specifies the receiver. For example, "john"
  • has-attachments — Whether to search for messages sent with attachments.
  • in — Messages in any folder, including Spam and Trash. For example, shopping
  • include-spam-trash — Includes messages from SPAM and TRASH in the results. (Default: false)
  • labels-ids — Returns messages with labels that match all of the specified label IDs in a comma-separated list.
  • subject — Words in the subject line. For example, "alert"
  • query — Returns messages matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser@example.com rfc822msgid: is:unread". For more syntax information,see "https://support.google.com/mail/answer/7190?hl=en"

Outputs

  • Gmail.Mailboxes — The Gmail mailbox.
  • Gmail.ID — The inner ID of the Gmail message.
  • Gmail.ThreadId — The thread ID.
  • Gmail.Format — The MIME type of the email.
  • Gmail.Labels — The labels of a specific email.
  • Gmail.To — The email address of the receiver.
  • Gmail.From — The email address of the sender.
  • Gmail.Cc — The additional recipient email address (CC).
  • Gmail.Bcc — The additional recipient email address (BCC).
  • Gmail.Subject — The subject of the specific email.
  • Gmail.Body — The content of the email.
  • Gmail.Attachments — The attachments of the email. IDs are separated by commas.
  • Gmail.Headers — All headers of a specific mail (list).

Flowchart

Start Start Done Done DeleteContext - DeleteContext DeleteContext DeleteContext Search in mailboxes Gmail (Loop) with polling - Search in mailboxes Gmail (Loop) with polling Search in mailboxes Gmail... Search in mailboxes Gmail (Lo...