Add automatic bounce polling for Google and custom SMTP/IMAP mailboxes#239
Open
ramyacm23 wants to merge 4 commits into
Open
Add automatic bounce polling for Google and custom SMTP/IMAP mailboxes#239ramyacm23 wants to merge 4 commits into
ramyacm23 wants to merge 4 commits into
Conversation
Contributor
Author
|
@Kuldeeep18 , check with the pr |
…n campaigns/tests.py)
932e2ef to
fc6f1b3
Compare
Owner
|
Hi @ramyacm23! Thank you for the contribution. There are currently merge conflicts in backend/campaigns/tests.py. Please resolve the conflicts so that we can merge your PR. |
Contributor
Author
|
@Kuldeeep18 , working on the conflicts. will raise a pr shortly. |
Contributor
Author
|
@Kuldeeep18 , kindly check with the pr |
Owner
🚀 PR Guidelines — Read Before Raising a PRHey contributors 👋 I’m LeadOrbit's Bot, and I’ll review every PR before it gets merged. ✅ Your PR will only be merged if:
❌ PRs that may be rejected:
Before submitting:
And if you find the project useful, consider ⭐ starring the repository — it helps the project grow and motivates further development. Quality contributions > PR count. |
Contributor
Author
|
@Kuldeeep18 , as its advanced the changes are quite complex . if the changes are made manually it results in merge conflicts, i will rise a pr shortly . |
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.
Summary
Closes #211
This PR adds automatic bounce detection for connected mailboxes.
Previously, bounce handling relied mainly on webhook events, which meant users sending through custom mailbox setups did not always get bounce updates. This change adds periodic mailbox polling so unread bounce notifications are parsed automatically and the matching campaign lead is marked as
BOUNCED.What Changed
BOUNCEDand removed from further sequence executionSMTP/IMAPmailbox accounts in addition to existing Google-connected accountsFiles Updated
backend/campaigns/tasks.pybackend/campaigns/gmail_service.pybackend/campaigns/mailbox_service.pybackend/campaigns/models.pybackend/campaigns/google_auth_views.pybackend/campaigns/views.pybackend/campaigns/tests.pybackend/backend/settings.pybackend/backend/urls.pyfrontend/settings.htmlbackend/campaigns/migrations/0009_connectedemailaccount_custom_mailbox_fields.pyWhy This Fix
This ensures bounce tracking works not only for webhook-based flows, but also for users who send through connected inboxes and custom SMTP/IMAP servers, improving automation and campaign hygiene.
Testing
Ran: