Repository navigation
Add freelancer@dtcdev.click mailbox workflow - #108
Merged
Merged
Conversation
Publish a tofu-mailbox-shaped HTTP-forward workflow so mail to freelancer@dtcdev.click posts to the Freelancer bot webhook (Bearer token from workflow storage). The payload includes body and a marketplace thread link when one is present. Document the anyone sender policy, required because forwarded Upwork/Fiverr/Contra/Malt mail does not come from a fixed allowlist and wildcards are rejected.
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
Adds
freelancer-mailbox, a tofu/orin-shaped HTTP-forward workflow that claimsfreelancer@dtcdev.clickand posts inbound mail to the Freelancer Grok bot webhook. Storage keyswebhook_urlandwebhook_tokenare read at runtime (Bearer auth). The formatted payload includesfrom,subject,body/snippet/text, andthread_linkwhen the body has an Upwork, Fiverr, Contra, Malt, or Freelancer.com URL.The route uses sender policy
anyoneso Gmail-forwarded marketplace mail is accepted. Wildcards are not supported on allowlists, and those messages do not come from a fixed set of addresses. dev/tofu/orin stay on their allowlists.Tests
Full suite equivalent to
make test: 5140 passed, 48 skipped, 42 subtests passed.Live (already published via CLI; this PR is the source of truth)
The workflow is live as
freelancer-mailboxv1, hookfreelanceris reserved, and storage for the bot webhook is set. An end-to-end[TEST]mail fromorin@datatalks.clubtofreelancer@dtcdev.clickwas handled and the run completed, includingpost-webhooksuccess.Hub quota-fallback keys are not provisioned, so mail takes the webhook path (same fail-safe as the other mailboxes when hub_* are unset).