Skip to content

Bulk unsubscribe does not write to the suppression list #120

Open

Description

@JuansesDev

What happens

Suppressions are written only on the single-subscriber path. The bulk status action updates subscriber rows without writing a suppression, and transactional sends consult only the suppression list — so contacts unsubscribed in bulk keep receiving transactional mail.

Where

  • backend/internal/service/subscriber.go:367-372 — individual path writes the suppression.
  • backend/internal/service/subscriber.go:416-441 — bulk path does not.
  • backend/internal/service/email.go:555-558 — sends check only the suppression list.

Impact

An unsubscribe that does not stop mail, which is both a correctness and a compliance problem.

Proposed fix

Write suppressions for the bulk path as well, mirroring the single-subscriber behaviour.

Acceptance

  • After a bulk unsubscribe, transactional sends skip those addresses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backendbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions