Bug #4318

Legacy bug in net/imap in Ruby 1.9.x

Added by T. N. T. about 3 years ago. Updated over 2 years ago.

[ruby-core:34839]
Status:Closed
Priority:Normal
Assignee:Shugo Maeda
Category:lib
Target version:1.9.3
ruby -v:ruby 1.9.2p0 (2010-08-18 revision 29036) [i686-linux] (but it is also in the current patchlevel136) Backport:

Description

=begin
Emails that get 'appended' to a mailbox are cut-off
at the end. Not always but only in non-multipart mails where the headers

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit

apply to the whole content.

This fixes the problem:

module Net
class IMAP
def sendliteral(str)
put
string("{" + str.bytesize.tos + "}" + CRLF)
@continuation
requestarrival.wait
raise @exception if @exception
put
string(str)
end
end
end

The change is "str.length.tos" -> "str.bytesize.tos".

Regards, T.
=end

History

#1 Updated by Yui NARUSE about 3 years ago

  • Status changed from Open to Assigned
  • Assignee set to Shugo Maeda

=begin

=end

#2 Updated by Shugo Maeda about 3 years ago

=begin
Hi,

The change is "str.length.tos" -> "str.bytesize.tos".

This bug has been fixed in r30543.

http://redmine.ruby-lang.org/repositories/revision/ruby-19?rev=30543

Could you check it?
=end

#3 Updated by Koichi Sasada almost 3 years ago

  • Status changed from Assigned to Feedback

#4 Updated by Hiroshi Nakamura almost 3 years ago

  • Target version changed from 2.0.0 to 1.9.3

#5 Updated by Shugo Maeda over 2 years ago

  • Status changed from Feedback to Closed

Hi,

Shugo Maeda wrote:

This bug has been fixed in r30543.

http://redmine.ruby-lang.org/repositories/revision/ruby-19?rev=30543

Could you check it?

There has been no feedback for a long time, so I close this ticket.
Please reopen it if necessary.

Also available in: Atom PDF