Send Telegram message when a new Gmail message matches your search
This trigger fires every time an email newly matches your Gmail search, whether it just arrived or just changed to match.
Developer info
- API endpoint slug
- gmail.new_email_matching_search
Trigger fields
Query Text input
- Label
- Gmail search query
- Helper text
- Accepts Gmail search syntax, for example from:boss@example.com has:attachment or in:sent to:jane@example.com. Plain text matches the subject, body, From and To only, so add cc: to match copied addresses too.
- Slug
- query
- Required
- true
- Can have default value
- true
Ingredients
Message Gmail's id for the message.
- Slug
- message_id
- Filter code
- Gmail.newEmailMatchingSearch.MessageId
- Type
- String
- Example
- 19ff0b2ef9fbb3d6
Thread Gmail's id for the conversation the message belongs to.
- Slug
- thread_id
- Filter code
- Gmail.newEmailMatchingSearch.ThreadId
- Type
- String
- Example
- 19ff0b2ef9fbb3d6
Message id header The email's RFC 822 Message-ID header, which is separate from Gmail's own id.
- Slug
- message_id_header
- Filter code
- Gmail.newEmailMatchingSearch.MessageIdHeader
- Type
- String
- Example
- <CAHFh0LsmJCyxzbEyAp4AXhLcpQ@mail.gmail.com>
Subject The email's subject.
- Slug
- subject
- Filter code
- Gmail.newEmailMatchingSearch.Subject
- Type
- String
- Example
- Project update
From name The sender's display name.
- Slug
- from_name
- Filter code
- Gmail.newEmailMatchingSearch.FromName
- Type
- String
- Example
- Jane Doe
From The sender's email address.
- Slug
- from_address
- Filter code
- Gmail.newEmailMatchingSearch.From
- Type
- String
- Example
- jane@example.com
To The To header of the email.
- Slug
- to_address
- Filter code
- Gmail.newEmailMatchingSearch.To
- Type
- String
- Example
- you@gmail.com
Cc The Cc header of the email. Empty when nobody was copied.
- Slug
- cc
- Filter code
- Gmail.newEmailMatchingSearch.Cc
- Type
- String
- Example
- team@example.com
Bcc The Bcc header of the email. Received mail rarely carries one, so this is usually empty.
- Slug
- bcc
- Filter code
- Gmail.newEmailMatchingSearch.Bcc
- Type
- String
- Example
- hidden@example.com
Reply to The Reply-To header, when the sender set one.
- Slug
- reply_to
- Filter code
- Gmail.newEmailMatchingSearch.ReplyTo
- Type
- String
- Example
- no-reply@example.com
Body plain The email's body as plain text. Very long bodies are truncated.
- Slug
- body_plain
- Filter code
- Gmail.newEmailMatchingSearch.BodyPlain
- Type
- String
- Example
- Here is the latest update on the project.
Body html The email's body as HTML, when the email has one. Very long bodies are truncated.
- Slug
- body_html
- Filter code
- Gmail.newEmailMatchingSearch.BodyHTML
- Type
- String
- Example
- <p>Here is the latest update on the project.</p>
Snippet A short preview of the email's content.
- Slug
- snippet
- Filter code
- Gmail.newEmailMatchingSearch.Snippet
- Type
- String
- Example
- Here is the latest update on the...
Has attachments Whether the email carries attachments: true or false.
- Slug
- has_attachments
- Filter code
- Gmail.newEmailMatchingSearch.HasAttachments
- Type
- String
- Example
- false
Attachment count How many attachments the email carries.
- Slug
- attachment_count
- Filter code
- Gmail.newEmailMatchingSearch.AttachmentCount
- Type
- String
- Example
- 2
Size estimate Gmail's estimate of the email's size in bytes.
- Slug
- size_estimate
- Filter code
- Gmail.newEmailMatchingSearch.SizeEstimate
- Type
- String
- Example
- 6959
Is unread Whether the email is unread: true or false.
- Slug
- is_unread
- Filter code
- Gmail.newEmailMatchingSearch.IsUnread
- Type
- String
- Example
- true
Is important Whether Gmail marked the email important: true or false.
- Slug
- is_important
- Filter code
- Gmail.newEmailMatchingSearch.IsImportant
- Type
- String
- Example
- false
Is starred Whether the email is starred: true or false.
- Slug
- is_starred
- Filter code
- Gmail.newEmailMatchingSearch.IsStarred
- Type
- String
- Example
- false
Category The inbox category Gmail sorted the email into: personal, social, promotions, updates or forums. Empty when the account has categories turned off.
- Slug
- category
- Filter code
- Gmail.newEmailMatchingSearch.Category
- Type
- String
- Example
- personal
Label ids Comma-separated list of the label ids on the email.
- Slug
- label_ids
- Filter code
- Gmail.newEmailMatchingSearch.LabelIds
- Type
- String
- Example
- UNREAD, IMPORTANT, INBOX
Received at Date and time the email arrived.
- Slug
- received_at
- Filter code
- Gmail.newEmailMatchingSearch.ReceivedAt
- Type
- Date with time (ISO8601)
- Example
- 2020-07-08T04:17:06+05:00
Message url Link that opens the email in Gmail.
- Slug
- message_url
- Filter code
- Gmail.newEmailMatchingSearch.MessageUrl
- Type
- Web URL
- Example
- https://mail.google.com/mail/#all/18c1a2b3d4e5f607
