From: David Burns Date: 2011-02-16T06:42:30+09:00 Subject: Re: confusing tlsmail error Bad login (Net::POPAuthenticationError) Oops, never mind. I was having a problem earlier with the password, so I changed it, but did not update the test code. DOH! Thanks to Brian Candler for clarifying. On Tue, Feb 15, 2011 at 10:55 AM, David Burns wrote: > I am trying to execute an example listed on > http://rubydoc.info/gems/tlsmail/0.0.1/frames. > > > Anyone have a clue for me? > mahalo, > Dave > In case anyone cares, here is how I debugged.. The run bombs during check_response_auth, defined as: # def check_response_auth(res) # raise POPAuthenticationError, res unless /\A\+OK/i === res # res # end I changed that to debug as follows: #grep -A5 'def check_response_auth' /usr/lib/ruby/1.8/net/pop.rb # def check_response_auth( res ) # puts res # raise POPAuthenticationError, res unless /\A\+OK/i === res # res # end AFter that, the run looks like: ruby ruby/getmail.rb +OK User name accepted, password please -ERR Bad login /usr/lib/ruby/1.8/net/pop.rb:865:in `check_response_auth': -ERR Bad login (Net::POPAuthenticationError) from /usr/lib/ruby/1.8/net/pop.rb:766:in `auth' from /usr/lib/ruby/1.8/net/pop.rb:445:in `do_start' from /usr/lib/ruby/1.8/net/pop.rb:432:in `start' from ruby/getmail.rb:4 So we see the username is accepted, but then the password rejected. Dave