Hi!
I’m wondering what’s the proper way to disconnect from an imap server via ssl.
imap = Net::IMAP.new(“myserver”, 993, true)
imap.login(“gogo”,“password”)
imap…
Connecting works as expected.
But when I try to disconnect, there are some problems.
With imap.logout():
irb(main):007:0> imap.logout()
=> #<struct Net::IMAP::TaggedResponse tag=“RUBY0002”, name=“OK”, data=#,
raw_data=“RUBY0002 OK LOGOUT completed\r\n”>
OpenSSL::SSL::SSLError: SSL_read::
from /usr/local/lib/ruby/1.8/net/imap.rb:914:in printf' from /usr/local/lib/ruby/1.8/irb.rb:296:in
output_value’
from /usr/local/lib/ruby/1.8/irb.rb:149:in eval_input' from /usr/local/lib/ruby/1.8/irb.rb:145:in
signal_status’
from /usr/local/lib/ruby/1.8/irb.rb:145:in eval_input' from /usr/local/lib/ruby/1.8/irb.rb:144:in
each_top_level_statement’
from /usr/local/lib/ruby/1.8/irb.rb:144:in eval_input' from /usr/local/lib/ruby/1.8/irb.rb:70:in
start’
from /usr/local/lib/ruby/1.8/irb.rb:69:in catch' from /usr/local/lib/ruby/1.8/irb.rb:69:in
start’
from /usr/local/bin/irb:13
Is that normal?
An imap.disconnect() does nothing (after running more than five minutes…I
canceled it)
There is something wrong with the server? Or what’s the proper way to
disconnect?
Robert!
http://www.stud.uni-saarland.de/~rogo5001/
JID: gogo@eugene.cs.uni-sb.de