Forum: Ruby Mail Fetcher : issue

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.
Vipin V. (Guest)
on 2009-01-01 14:09
Hi All,

I want to featch mails from gmail using rails. Am following
link for that. But am getting an error.

Timeout::Error (execution expired):
    ./vendor/plugins/mail-fetcher/lib/net/pop.rb:519:in `do_start'
    ./vendor/plugins/mail-fetcher/lib/net/pop.rb:522:in `do_start'
    ./vendor/plugins/mail-fetcher/lib/net/pop.rb:508:in `start'
    ./vendor/plugins/mail-fetcher/lib/net/pop.rb:383:in `start'
    /app/controllers/users_controller.rb:128:in `fetch_mail'

I have downloaded mail-fetcher plugin and added it in my controller file
(require 'vendor/plugins/mail-fetcher/lib/mail_fetcher.rb'). But its
getting stuck here.

Net::POP3.start("", nil, "username", "password") do |pop|
and s = timeout(@open_timeout) {, @port) }

When i tried with irb its gave me this error

Apples-iMac-Vipin:~ vipin$ irb
>> require 'socket'
=> true
>> require 'open-uri'
=> true
>> s ="", 587) ; s.close
Errno::ETIMEDOUT: Operation timed out - connect(2)
        from (irb):3:in `initialize'
        from (irb):3:in `open'
        from (irb):3

Any ideas?
This topic is locked and can not be replied to.