Skip to content

Fix feed email slug lookup#627

Merged
bokelley merged 2 commits into
mainfrom
bokelley/fix-feed-email-lookup
Jan 5, 2026
Merged

Fix feed email slug lookup#627
bokelley merged 2 commits into
mainfrom
bokelley/fix-feed-email-lookup

Conversation

@bokelley

@bokelley bokelley commented Jan 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fix bug where inbound feed emails failed to find matching feeds
  • Migration 060 seeded email_slug values without the feed- prefix (e.g., campaign-uk)
  • The webhook extracts the full local part from addresses like feed-campaign-uk@updates.agenticadvertising.orgfeed-campaign-uk
  • This caused lookups to fail with "No matching feed found for inbound email"

Changes

  • Add migration 141 to prepend feed- to existing email slugs that are missing it
  • Add unit tests for feed email address parsing

Test plan

  • Verified migration runs successfully and updates all seeded feed email slugs
  • Database query confirms slugs now have feed- prefix
  • Unit tests pass (50 tests including 7 new feed email tests)
  • Typecheck passes

🤖 Generated with Claude Code

bokelley and others added 2 commits January 5, 2026 11:13
The webhook extracts email addresses like feed-campaign-uk@updates.agenticadvertising.org
and looks up feeds by slug 'feed-campaign-uk'. However, migration 060 seeded email slugs
without the 'feed-' prefix (e.g., 'campaign-uk'), causing lookups to fail with
"No matching feed found for inbound email".

This adds migration 141 to prepend 'feed-' to existing slugs, matching the format used by
generateEmailSlug() and expected by the webhook handler.

Also adds unit tests for feed email address parsing to prevent regression.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The CI was failing due to a transient 504 timeout from GitHub.
Increase timeout from 10s to 20s and retries from 3 to 5 with
a 5s fallback delay between retries.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@bokelley bokelley merged commit 4270b46 into main Jan 5, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant