fix(campaign): mark excluded delivery as skipped
This commit is contained in:
@@ -513,6 +513,12 @@ def _message_draft(
|
||||
eml_path: str | None = None,
|
||||
eml_size: int | None = None,
|
||||
) -> MessageDraft:
|
||||
if validation_status == MessageValidationStatus.EXCLUDED:
|
||||
# Exclusion is a completed validation decision, not a pending delivery.
|
||||
# Keep both transport projections explicit so reports never imply that
|
||||
# SMTP or IMAP work is still expected for this row.
|
||||
send_status = SendStatus.SKIPPED
|
||||
imap_status = ImapStatus.SKIPPED
|
||||
if imap_status is None:
|
||||
imap_status = _imap_initial_status(config) if build_status == BuildStatus.BUILT else ImapStatus.SKIPPED
|
||||
return MessageDraft(
|
||||
|
||||
Reference in New Issue
Block a user