Repository navigation
Watch marketplace mail in personal Gmail for freelancer-mailbox - #109
Merged
Merged
Conversation
Add a readonly gmail.messages poll (freelancer-gmail) on Alexey's existing personal Gmail connection so new messages from Upwork, Fiverr, Contra, Malt, and Freelancer.com post the same webhook payload as freelancer@dtcdev.click. The first fire seeds the watermark at now (no backfill); later fires are deduped by Gmail message id. The poll only lists and reads messages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
A read-only workaround for Gmail forwarding (the personal Gmail connection has
gmail.readonly/gmail.send, notgmail.settings.sharingorgmail.settings.basic).freelancer-gmail(polls/freelancer-gmail.json) watchesalexey.s.grigoriev@gmail.comthrough the existinggoogle-calendarconnection, queryfrom:(upwork.com OR fiverr.com OR contra.com OR malt.com OR malt.de OR freelancer.com).gmail.messagesalready seeds its watermark on the first fire (no backfill) and dedupes by message id.freelancer-mailboxgains agmail/message.receivedtrigger filtered to this poll, and reuses the same storage keys and webhook POST. The formatted payload still includesfrom,subject,body/snippet/text, andthread_link.Tests
Full suite: 5144 passed, 48 skipped, 42 subtests passed.
Live config
The workflow update and poll will be published via the CLI after merge (polls are not git-synced). The first
dapier polls check freelancer-gmailseeds the watermark.