Hi,

In message "Re: [ruby-core:29767] [Bug #3191] imap exits on login with invalid credentials"
    on Fri, 23 Apr 2010 22:19:16 +0900, Karl Baum <redmine / ruby-lang.org> writes:

|The problem is that the ruby process just exits after the login attempt:

It just raised an exception.  You can catch and handle it if you don't
want the process to be terminated.

							matz.