gen-smtp / gen_smtp

The extensible Erlang SMTP client and server library.
Other
683 stars 266 forks source link

bugfix: when 8BITMIME extension is enabled, BODY could be "7bit" #283

Closed seriyps closed 3 years ago

seriyps commented 3 years ago

I unfortunately introduced a bug in https://github.com/gen-smtp/gen_smtp/commit/ecc923e39f2d11af6977ccf0e3238ab6e8c754d7

Turns out, many SMTP senders are sending MAIL FROM: .... BODY=7bit when they see 8BITMIME extension. see https://datatracker.ietf.org/doc/html/rfc6152#section-2

mworrell commented 3 years ago

Mailers are funny. Good catch.