Skip to content

Commit

Permalink
add note on spam
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansalamon committed Oct 4, 2024
1 parent 8b3cfa4 commit b3d0227
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/haj/mailer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ defmodule Haj.Mailer.SpamAdapter do
defp render_recipient({name, address}), do: %{name: name, address: address}
defp render_recipient(list) when is_list(list), do: Enum.map(list, &render_recipient/1)

# SPAM does not support "name" in the recipient field in "from" field
# SPAM does not support "name" in the recipient field in "from" field.
# TODO: Can be removed when https://github.com/datasektionen/spam/pull/10 is merged
defp render_from(nil), do: []
defp render_from({_name, address}), do: address
defp render_from(list) when is_list(list), do: Enum.map(list, &render_recipient/1)
Expand Down

0 comments on commit b3d0227

Please sign in to comment.