Forum: Ruby on Rails Fetcher with MMS2R throwing socket error

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
adeel (Guest)
on 2009-01-31 01:38
(Received via mailing list)
Hi I'm using Fetcher with MMS2R as described in the Peepcode mini-

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
  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.

Richard S. (Guest)
on 2009-02-13 23:29
(Received via mailing list)
Did you ever get this working??

I'm having a similar problem
This topic is locked and can not be replied to.