net/imap failes with parser errors
----------------------------------

                 Key: JRUBY-1129
                 URL: http://jira.codehaus.org/browse/JRUBY-1129
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.0.0RC3
         Environment: Windows XP Home, Java 1.6.0_01, JRuby 1.0 and 
jruby-openssl-0.0.3
            Reporter: William Gannon
             Fix For: JRuby 1.0.0


Installed jruby-openssl using gem since net/imap won't work without this.
Type the following in jirb:

C:\jruby-1.0\bin>jirb
irb(main):001:0> require 'net/imap'
=> true
irb(main):002:0> imap = Net::IMAP.new('mail.valid_imap_server.com')
Net::IMAP::ResponseParseError: unknown token - "*"
        from C:/jruby-1.0/lib/ruby/1.8/net/imap.rb:3104:in `parse_error'
        from C:/jruby-1.0/lib/ruby/1.8/net/imap.rb:3021:in `next_token'
        from C:/jruby-1.0/lib/ruby/1.8/net/imap.rb:2966:in `lookahead'
        from C:/jruby-1.0/lib/ruby/1.8/net/imap.rb:1925:in `response'
        from C:/jruby-1.0/lib/ruby/1.8/net/imap.rb:1856:in `parse'
        from C:/jruby-1.0/lib/ruby/1.8/net/imap.rb:996:in `get_response'
        from C:/jruby-1.0/lib/ruby/1.8/net/imap.rb:910:in `initialize'
        from (irb):2:in `new'
        from (irb):2:in `binding'
        from C:/jruby-1.0/lib/ruby/1.8/irb.rb:150:in `eval_input'
        from C:/jruby-1.0/lib/ruby/1.8/irb.rb:70:in `signal_status'
        from C:/jruby-1.0/lib/ruby/1.8/irb.rb:189:in `eval_input'
        from C:/jruby-1.0/lib/ruby/1.8/irb.rb:70:in `each_top_level_statement'
        from C:/jruby-1.0/lib/ruby/1.8/irb.rb:190:in `loop'
        from C:/jruby-1.0/lib/ruby/1.8/irb.rb:190:in `catch'
        from C:/jruby-1.0/lib/ruby/1.8/irb.rb:190:in `eval_input'
        from C:/jruby-1.0/lib/ruby/1.8/irb.rb:70:in `start'
        from :-1:in `catch'
        from C:/jruby-1.0/lib/ruby/1.8/irb.rb:71:in `start'

Running the exact same thing in irb does not produce this error.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to