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



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
--
Posted via http://www.ruby-forum.com/.

.



Relevant Pages

  • gdm hangs
    ... gdm will hang 9 of 10 times when logging out. ... with or without the client having been connected to the Server. ... # Timed login, useful for kiosks. ... Must output the chosen host on stdout, ...
    (Debian-User)
  • RE: OWA 2003 with ISA 2004
    ... OWA externally. ... i can login by any user. ... 825763 How to configure Internet access in Windows Small Business Server ... g. Reproduce this issue and send the logs to me. ...
    (microsoft.public.windows.server.sbs)
  • Re: Compromised Server? Anyone recognize the suspect Services?
    ... there are a bunch of logins for Website Accounts created by the ... The login accounts are for web sites that are on the ... Server management is ... right under Network Connections there were 3 ...
    (microsoft.public.windows.server.networking)
  • Re: IIS 6.0 FTP
    ... Server port: 21. ... I doubt IIS FTP has such feature. ... next, general 530 error indicating login failed, that could due to ... clients are using an order entry program created in Microsoft access. ...
    (microsoft.public.inetserver.iis.ftp)
  • Re: Terminal Services Setup/Flaw
    ... This still allows everyone to hit the TS Server but denies the login to ... Terminal Server with this user and then .rdp into another server on the ... I found the Remote ...
    (microsoft.public.windows.terminal_services)