Project

General

Profile

Actions

Backport #3191

closed

imap exits on login with invalid credentials

Added by kbaum (Karl Baum) over 14 years ago. Updated about 12 years ago.

Status:
Closed
[ruby-core:29745]

Description

=begin
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.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0