Skip to content

Commit

Permalink
Fix bug related to local part being puny code encoded
Browse files Browse the repository at this point in the history
  • Loading branch information
kalys committed Jun 21, 2023
1 parent 6c12498 commit d6eacf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bamboo/adapters/message/encoding.ex
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ defmodule BambooSes.Encoding do

defp encode_address(address) do
[local_part, domain_part] = String.split(address, "@")
Enum.join([:idna.utf8_to_ascii(local_part), :idna.utf8_to_ascii(domain_part)], "@")
Enum.join([local_part, :idna.utf8_to_ascii(domain_part)], "@")
end

defp rfc1342_encode(string) when is_binary(string), do: rfc1342_encode(string, [])
Expand Down

0 comments on commit d6eacf1

Please sign in to comment.