ruby imap: can't login to server a second time

M

Mark Kirby

Hi,

I have a courier imap server which i can log into and do all the things
i want to do.

Now i need a script that can log into the server every so often and
slurp the mail of into my web app.

I can log in but after i log out i can no longer log back in.

I get the following when running with Net::IMAP::debug = true, error
thrown at login

C: RUBY0001 LOGIN
S: RUBY0001 OK LOGIN Ok.
C: RUBY0002 LOGOUT
S: * BYE Courier-IMAP server shutting down
S: RUBY0002 OK LOGOUT completed
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/imap.rb:290:in
`shutdown': Socket is not connected (Errno::ENOTCONN)
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/net/imap.rb:290:in
`disconnect'
from ./mailmon:65

ruby version is ruby 1.8.6 (2007-09-24 patchlevel 111)
[universal-darwin9.0] on leopard.

Any one got any ideas?

Thanks

Mark Kirby
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top