Forum: Ruby on Rails Fetcher with MMS2R throwing socket error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dd859ff9f672a06dfab509e9ecaecc20?d=identicon&s=25 adeel (Guest)
on 2009-01-31 00:38
(Received via mailing list)
Hi I'm using Fetcher with MMS2R as described in the Peepcode mini-
book.

After I start Fetcher I get the following error a few seconds later:

$ RAILS_ENV=development ruby script/mail_fetcher start
Starting MailFetcherDaemon
$ /usr/local/lib/ruby/1.8/net/imap.rb:288:in `shutdown': Socket is not
connected (Errno::ENOTCONN)
  from /usr/local/lib/ruby/1.8/net/imap.rb:288:in `disconnect'
  from myapp/vendor/plugins/fetcher/lib/fetcher/imap.rb:63:in
`close_connection'
  from myapp/vendor/plugins/fetcher/lib/fetcher/base.rb:33:in `fetch'
  from script/mail_fetcher:16:in `start'
  from script/mail_fetcher:15:in `loop'
  from script/mail_fetcher:15:in `start'
  from myapp/lib/daemon.rb:55:in `start'
  from myapp/lib/daemon.rb:45:in `fork'
  from myapp/lib/daemon.rb:45:in `start'
  from myapp/lib/daemon.rb:32:in `daemonize'
  from myapp/lib/daemon.rb:14:in `daemonize'
  from script/mail_fetcher:27

When I comment out the @connection.disconnect line in imap.rb of
course it's fine (but of course causes problems later after a
receiving a few emails ok).

Bit of a noob to this area, any ideas?
I'm on Rails 2.1.1.

Thanks.
71ee1809f53df0a2b4dac0530f630933?d=identicon&s=25 Richard Schneeman (snowmaninthesun)
on 2009-02-13 22:29
(Received via mailing list)
Did you ever get this working??

I'm having a similar problem

http://www.ruby-forum.com/topic/178498
This topic is locked and can not be replied to.