From: lluis@... Date: 2014-06-02T09:38:45+00:00 Subject: [ruby-core:62906] [ruby-trunk - Bug #9895] [Open] net/imap stops responding when trying to create a message to an unexisting folder Issue #9895 has been reported by Llu��s Gili. ---------------------------------------- Bug #9895: net/imap stops responding when trying to create a message to an unexisting folder https://bugs.ruby-lang.org/issues/9895 * Author: Llu��s Gili * Status: Open * Priority: Normal * Assignee: * 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/