Search in mailboxes Gmail (Loop) with polling
This playbook should only run as a sub-playbook for the Search-all-mailboxes - Gmail playbook, it should not run alone.
Gmail · 8 tasks · 15 inputs · 18 outputs
Inputs
after— Search for messages sent after a specific date. For example, 2018/05/06before— Search for messages sent before a specific date. For example, 2018/05/09fields— 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, shoppinginclude-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.page-token— This argument is not usablequery— 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"subject— Words in the subject line. For example, "alert"search_to— Used to track a search's progresssearch_from— Used to track a search's progress
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 specific mail (list).Email.Attachments.entryID— Email Attachments. IDs are separated by commas.NewPageToken— In the next iteration, additional accounts will be imported using this output.Stop— The result of this output causes the loop to end.SearchFromAccountIndex— A search is performed from an account index (Enables the search process to be followed).SearchToAccountIndex— A search is performed to an account index (Enables the search process to be followed).
Commands used
gmail-search-all-mailboxes