Bug #3191: imap exits on login with invalid credentials
http://redmine.ruby-lang.org/issues/show/3191

Author: Karl Baum
Status: Open, Priority: Normal
Category: core
ruby -v: ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.8.0]

When I log into an account with invalid credentials, it throws an invalid login error and just exits the process.  This can be reproduced from irb with:

    require 'net/imap'

    imap = Net::IMAP.new('imap.aol.com', 993, true)
    imap.login('jerry', 'springer')

I traced the problem to the exception being raised within the client thread here on line 965 of imap.rb

    rescue Exception 
      @client_thread.raise($!) 
    end

As soon as the exception is raised with in the @client_thread, the ruby process exits.


----------------------------------------
http://redmine.ruby-lang.org