Email Operations
How Email Sending Queues Prevent Duplicates
Published 2026-09-20 · CSV Sender
Duplicate queue sends come from retries without idempotency, overlapping campaigns, or bad CSV exports—not from normal CSV Sender claims. Here is how to prevent them.
Quick answer
Email queue duplicates are two Gmail deliveries of the same prepared content to one recipient. CSV Sender prevents the common infrastructure cause—double cron claims—using idempotent email sending with SENDING locks. Remaining duplicate risk usually comes from operator actions (re-uploading the same CSV as a new campaign), overlapping lists, or file-level duplicate emails that validation should catch (email duplicate protection).
Layer 1: CSV import dedupe
During validateCsvRows, normalized emails map to first row wins; later rows emit DUPLICATE_EMAIL issues. Fix upstream with find duplicate emails in CSV and remove duplicate emails from CSV.
This layer stops duplicate rows from entering the queue at all.
Layer 2: Workspace history skip
When Skip previously contacted is enabled, addresses with prior SENT rows in the workspace become SKIPPED at campaign start. That blocks a second campaign from mailing the same lead even when the CSV is new.
See avoid emailing twice for playbooks.
Layer 3: Runtime idempotency
Even if two workers race, only one successful SENT transition should win per message primary key. Retries move SENDING → SCHEDULED with backoff (email send retries) rather than inserting a second message row.
Queue duplicates that still happen
| Cause | Symptom | Mitigation |
|---|---|---|
| New campaign, same CSV, skip off | Two SENT to one address | Enable skip previously contacted |
| Parallel campaigns before first send | Two SCHEDULED rows | Coordinate launches |
| Manual Gmail send + CSV Sender | Recipient gets two emails | Operational discipline |
| Mis-merged CRM export | Duplicate rows pass if different emails | Dedupe file |
Link to article 78 protections
Article 78 in this series—email duplicate protection—covers import and history layers in depth. Article 86—idempotent email sending—covers worker claims. Together they address duplicates before and during the queue.
Diagnostics
- Filter campaign messages by recipient email—how many SENT rows exist?
- Check import issues for DUPLICATE_EMAIL on the upload.
- Review activity for repeated
message_sentevents with differentmessage_idvalues—should not happen for one row. - Confirm you did not clone campaigns during RUNNING state.
Example
Team uploads leads_q3.csv Monday and starts campaign A. Wednesday they upload the same file as campaign B with skip previously contacted disabled while campaign A still has SCHEDULED rows. Both campaigns may send—CSV Sender treated them as independent message rows. Enable skip or wait for completion.
FAQ
Does retry equal duplicate?
Not when idempotency holds—only one SENT per row.
Will pause/resume duplicate?
No—statuses persist (resume email queue).
Does suppression stop duplicates?
Suppression blocks sends; dedupe stops repeated addresses in one file (email suppression list).
Can duplicates happen on 429 errors?
Rare if status guards work—see Gmail API 429 error.
Are BCC duplicates possible?
CSV Sender sends one recipient per row—no BCC column.
Related reading
- Idempotent email sending
- Email duplicate protection
- Workspace email history
- Validate CSV before emailing
Overlapping campaigns in one workspace
Large teams sometimes split one lead list into two CSV uploads for A/B subject tests. If both campaigns target overlapping addresses and skip previously contacted is disabled, duplicates are a business logic issue—not a queue bug. Standardize experiment design: mutually exclusive segments, or sequential campaigns after the first completes.
Duplicate protection vs idempotency (review)
Email duplicate protection stops bad data at the door. Idempotent email sending stops bad infrastructure from re-delivering good data. Article 87 sits between them: it explains symptoms operators see (two identical emails in an inbox) and maps each symptom to the correct layer.
Monitoring duplicate reports
When a recipient complains about duplicate mail, collect: both provider_message_id values (if available), campaign names, and approximate send times. If ids differ and both rows show SENT in the same campaign, escalate as a potential application defect. If ids belong to two campaigns, revisit skip settings and team process.
Mail merge double-send contrast
Template merge tools re-render content at click time; double clicks can duplicate sends without any CSV queue involved. CSV Sender’s per-row statuses exist partly to make progress visible compared to opaque browser extensions (mail merge vs CSV Sender).
Education for uploaders
Train CSV authors to sort and dedupe before export. Tools like /tools/csv-deduplicator reduce DUPLICATE_EMAIL noise during import review and prevent accidental twin rows with different bodies for the same address.
Related articles
Email Operations
What Is Idempotent Email Sending?
Learn how CSV Sender uses atomic SENDING claims and status-guarded updates so cron retries and worker crashes never double-send the same prepared row.
Email Operations
Why Duplicate Email Protection Matters
CSV Sender rejects duplicate emails within a CSV, optionally skips previously contacted addresses at campaign start, and validates before messages reach Gmail.
Email Operations
How to Avoid Accidentally Emailing Someone Twice
Prevent double sends by deduplicating your CSV, enabling skip previously contacted, and respecting workspace suppression before Gmail delivery.
Email Operations
Why Email Sending Systems Need Retries
CSV Sender classifies Gmail errors, retries up to five times with exponential backoff minutes, and reschedules rows to SCHEDULED with next_retry_at.
Permalink: http://localhost:3000/blog/email-queue-duplicates