From: shugo@... Date: 2014-06-11T06:39:59+00:00 Subject: [ruby-core:63096] [ruby-trunk - Bug #9895] [Feedback] net/imap stops responding when trying to create a message to an unexisting folder Issue #9895 has been updated by Shugo Maeda. Status changed from Assigned to Feedback Llu��s Gili wrote: > trying to create a message to unexisting folder makes net/imap to eternize, instead of raising an exception: The following exception is raised on my box: ``` $ ruby -v imaptest.rb ruby 2.0.0p353 (2013-11-22 revision 43784) [i686-linux] nil /home/shugo/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/net/imap.rb:1156:in `get_tagged_response': Folder doesn't exist. (Failure) (Net::IMAP::NoResponseError) from /home/shugo/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/net/imap.rb:1210:in `block in send_command' from /home/shugo/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize' from /home/shugo/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/net/imap.rb:1192:in `send_command' from /home/shugo/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/net/imap.rb:700:in `append' from imaptest.rb:6:in `
' ``` Please set Net::IMAP.debug to true, and show me the output. (Net::IMAP doesn't sanitize your password in debug logs, so please do it yourself.) ---------------------------------------- Bug #9895: net/imap stops responding when trying to create a message to an unexisting folder https://bugs.ruby-lang.org/issues/9895#change-47163 * Author: Llu��s Gili * Status: Feedback * Priority: Normal * Assignee: Shugo Maeda * Category: lib * Target version: * ruby -v: ruby 2.0.0p353 (2013-11-22) [i386-linux-gnu] * Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN ---------------------------------------- trying to create a message to unexisting folder makes net/imap to eternize, instead of raising an exception: ~~~ 2.0.0p353> require 'net/imap' 0.0600 (0.1808) => true 2.0.0p353> imap = Net::IMAP.new('mail.example.com', 143, false) 0.0100 (0.3245) => #, @host"mail.example.com", @port143, @tag_prefix"RUBY", @tagno0, @parser#, @sock#, @cond#, @continuation_request_arrival#, @cond#, @idle_done_condnil, @logout_command_tagnil, @debug_output_boltrue, @exceptionnil, @greeting#, @receiver_thread# 2.0.0p353> imap.login 'user', 'pass' 0.0000 (2.2579) => #, text=" Logged in">, raw_data="RUBY0001 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE QUOTA] Logged in\r\n"> 2.0.0p353> imap.list('','INBOX/Drafts') 0.0000 (0.2124) => nil 2.0.0p353> imap.append("INBOX/Drafts", < Subject: hello 2.0.0p353> From: shugo@ruby-lang.org 2.0.0p353> To: shugo@ruby-lang.org 2.0.0p353> 2.0.0p353> hello world 2.0.0p353> EOF ~~~ -- https://bugs.ruby-lang.org/