security: harden Campaign delivery effects and reconciliation
This commit is contained in:
@@ -127,7 +127,11 @@ def _apply_eml_retention(
|
||||
if job.queue_status in {JobQueueStatus.QUEUED.value, JobQueueStatus.SENDING.value} or job.send_status not in FINAL_EML_SEND_STATUSES:
|
||||
result["skipped_not_final"] += 1
|
||||
continue
|
||||
if job.imap_status == JobImapStatus.PENDING.value:
|
||||
if job.imap_status in {
|
||||
JobImapStatus.PENDING.value,
|
||||
JobImapStatus.APPENDING.value,
|
||||
JobImapStatus.OUTCOME_UNKNOWN.value,
|
||||
}:
|
||||
result["skipped_not_final"] += 1
|
||||
continue
|
||||
result["eligible"] += 1
|
||||
|
||||
Reference in New Issue
Block a user