apply to the content (in multipart mails Tmail makes the text/plain-part
have Content-Transfer-Encoding: Quoted-printable).
This fixes the problem:
module Net
class IMAP
def send_literal(str)
put_string("{" + str.bytesize.to_s + "}" + CRLF) @continuation_request_arrival.wait
raise @exception if @exception
put_string(str)
end
end
end
The change is "str.length.to_s" -> "str.bytesize.to_s".
apply to the content (in multipart mails Tmail makes the text/plain-part
have Content-Transfer-Encoding: Quoted-printable).
This fixes the problem:
module Net
class IMAP
def send_literal(str)
put_string("{" + str.bytesize.to_s + "}" + CRLF) @continuation_request_arrival.wait
raise @exception if @exception
put_string(str)
end
end
end
The change is "str.length.to_s" -> "str.bytesize.to_s".