DockYard / elixir-mail

Build composable mail messages
392 stars 64 forks source link

Subject not properly encoded to printable character #157

Closed rlopzc closed 12 months ago

rlopzc commented 1 year ago

Version

0.3.1

Test Case

Subject header:

Subject: =?UTF-8?Q?Read_the_latest_posts_-_"Hyperdrive:_ma?= =?UTF-8?Q?king_databases_feel_like_they=E2=80=99re_global"?=

Expected Behavior

Subject parsed as:

"subject" => "Read the latest posts - \"Hyperdrive: making databases feel like they’re global\""

Actual Behavior

Mail parses the subject as:

"subject" => "Read_the_latest_posts_-_\"Hyperdrive:_ma king_databases_feel_like_they’re_global\"",
andrewtimberlake commented 1 year ago

Why do you believe that “_” should be decoded as “ ”? I don’t see that in the spec

rlopzc commented 1 year ago

🤔 mostly because gmail shows the subject with spaces instead of _. I'm going to check the spec, thank you.

rlopzc commented 12 months ago

Closing this one, I didn't have the time to look into the spec.