Currently the \n char gets replaced with \r\n in binary parts:
My current workaround is:
module Mail
class Message
# Avoids calling {String#to_crlf} on binary parts.
def raw_source=(value)
if value.include?("Content-Transfer-Encoding: binary")
@raw_source = value
else
@raw_source = value.to_crlf
end
end
end
end
Currently the
\n
char gets replaced with\r\n
in binary parts:My current workaround is:
You can reproduce this with a PDF:
Should I open a ticket for the
mail
gem?