Bug #4318
closedLegacy bug in net/imap in Ruby 1.9.x
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 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".
Regards, T.
=end
        
           Updated by naruse (Yui NARUSE) almost 15 years ago
          Updated by naruse (Yui NARUSE) almost 15 years ago
          
          
        
        
      
      - Status changed from Open to Assigned
- Assignee set to shugo (Shugo Maeda)
=begin
=end
        
           Updated by shugo (Shugo Maeda) almost 15 years ago
          Updated by shugo (Shugo Maeda) almost 15 years ago
          
          
        
        
      
      =begin
Hi,
The change is "str.length.to_s" -> "str.bytesize.to_s".
This bug has been fixed in r30543.
http://redmine.ruby-lang.org/repositories/revision/ruby-19?rev=30543
Could you check it?
=end
        
           Updated by ko1 (Koichi Sasada) over 14 years ago
          Updated by ko1 (Koichi Sasada) over 14 years ago
          
          
        
        
      
      - Status changed from Assigned to Feedback
        
           Updated by nahi (Hiroshi Nakamura) over 14 years ago
          Updated by nahi (Hiroshi Nakamura) over 14 years ago
          
          
        
        
      
      - Target version changed from 2.0.0 to 1.9.3
        
           Updated by shugo (Shugo Maeda) about 14 years ago
          Updated by shugo (Shugo Maeda) about 14 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.