Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'net/imap'
- module Net
- class IMAP
- class ResponseParser
- def response
- token = lookahead
- case token.symbol
- when T_PLUS
- result = continue_req
- when T_STAR
- result = response_untagged
- else
- result = response_tagged
- end
- match(T_SPACE) if lookahead.symbol == T_SPACE
- match(T_CRLF)
- match(T_EOF)
- return result
- end #def response
- end #class ResponseParser
- end #class IMAP
- end #module Net
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement