Hemant Bhargava wrote:
> Hello all,
>
> My Ruby script:
>
> require "net/imap"
> imap = Net::IMAP.new('my server')
> imap.authenticate('LOGIN','myuser','mypassword')
>
>
> On the 3rd line I get a "NO response" exception raised (indicating that
> the IMAP server replied "NO") and the error message
> "Net::IMAP::NoResponseError: Unsupported authentication mechanism" If I
> change 'LOGIN' to 'CRAM-MD5' (the other value supported by Net::IMAP)
> then I get a similar (but not identical) error:
> "Net::IMAP::NoResponseError: Authentication failed: Unsupported
> authentication mechanism" If I use anything other than either 'LOGIN' or
> 'CRAM-MD5' I get an error from the Net::IMAP library saying "Unknown
> auth type" - which is reasonable.
>
> So can you people tell me that what should i do to get rid of this..
You may want to ask this on the Ruby list...
But since you're trying LOGIN authentication, have you tried using the
Net::IMAP#login method? Also, what does imap.capability say?
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.