Mail.defaults do
      retriever_method :pop3, :address => "192.168.171.96",
                              :port => 110,
                              :username => 'email_collector',
                              :password => 'secret',
                              :enable_ssl => false
    end
    emails = Mail.first

yeilds:

C:/Test/Ruby193/lib/ruby/1.9.1/net/pop.rb:1005:in `check_response_auth':
-ERR Authentication failed. (Net::POPAuthenticationError)
  from C:/Test/Ruby193/lib/ruby/1.9.1/net/pop.rb:907:in `auth'
  from C:/Test/Ruby193/lib/ruby/1.9.1/net/pop.rb:566:in `do_start'
  from C:/Test/Ruby193/lib/ruby/1.9.1/net/pop.rb:538:in `start'
  from
C:/Test/Ruby193/lib/ruby/gems/1.9.1/gems/mail-2.4.4/lib/mail/network/retriever_methods/pop3.rb:130:in
`start'
  from
C:/Test/Ruby193/lib/ruby/gems/1.9.1/gems/mail-2.4.4/lib/mail/network/retriever_methods/pop3.rb:61:in
`find'
  from
C:/Test/Ruby193/lib/ruby/gems/1.9.1/gems/mail-2.4.4/lib/mail/network/retriever_methods/base.rb:17:in
`first'
  from
C:/Test/Ruby193/lib/ruby/gems/1.9.1/gems/mail-2.4.4/lib/mail/mail.rb:159:in
`first'
  from C:/workspace/TheAutotomaters/autotest.rb:116:in `check_email'
  from C:/workspace/TheAutotomaters/TMI-PROC-1100-005.rb:22:in `<main>'

Have telneted to .96 and USER 'email_collector' PASS 'secret'  and
logged in ok?

Any ideas?

-- 
Posted via http://www.ruby-forum.com/.