[DEAD-2] Swoosh mailer dead — no email is ever composed or sent; dependency removable #41

Closed
opened 2026-11-14 18:29:02 +01:00 by amiryahaya · 1 comment
Owner

Finding

MdidWs.Mailer is a bare use Swoosh.Mailer; grep finds zero Swoosh.Email/new_email/deliver calls in lib+test. The /dev/mailbox route would always be empty; swoosh config exists in config.exs/test.exs/prod.exs.

Evidence

  • lib/mdid_ws/mailer.ex; config/config.exs:34; mix.exs:58

Impact

Dead dependency and scaffold.

Fix

  • Remove mailer, swoosh dep, its config, and the mailbox dev route (or actually wire notifications if wanted)

Line numbers refer to the initial import commit 282cb11. Source: comprehensive audit, 2026-11-12 (first review of this codebase).

## Finding `MdidWs.Mailer` is a bare `use Swoosh.Mailer`; grep finds zero `Swoosh.Email`/`new_email`/deliver calls in lib+test. The /dev/mailbox route would always be empty; swoosh config exists in config.exs/test.exs/prod.exs. ## Evidence - `lib/mdid_ws/mailer.ex`; `config/config.exs:34`; `mix.exs:58` ## Impact Dead dependency and scaffold. ## Fix - [ ] Remove mailer, swoosh dep, its config, and the mailbox dev route (or actually wire notifications if wanted) _Line numbers refer to the initial import commit `282cb11`. Source: comprehensive audit, 2026-11-12 (first review of this codebase)._
Author
Owner

Verified fixed on main (1b6216b): mailer and Swoosh removed (B5).

Verified fixed on main (1b6216b): mailer and Swoosh removed (B5).
Sign in to join this conversation.
No description provided.