# `Mutare.Swoosh.Attachment`
[🔗](https://github.com/foxbenjaminfox/mutare_swoosh/blob/v0.2.1/lib/mutare/swoosh/attachment.ex#L1)

:swoosh_attachment mutates attachment presence and disposition.

Two kinds of mutation, separately ignorable by variant label:

  * whole-attachment removal (`delete`) — a `Swoosh.Email.attachment(email, ...)` call
    collapses to the email (a piped stage to what was piped into it), and the singular
    `attachment:` option in Swoosh.Email.new/1 is dropped. A survivor means no test asserts the attachment
    exists. (Swoosh.Email.new/1 has no `attachments:` option, so none is matched.)
  * disposition swap (`inline` / `attachment`) — Swoosh exposes disposition on
    Swoosh.Attachment.new/2 through the :type option; type: :inline and type: :attachment are
    swapped where that option is present.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
