Project

General

Profile

Actions

Bug #2670

closed

Net::IMAP parser problem

Added by mithrandi (Tristan Seligmann) about 14 years ago. Updated almost 13 years ago.

Status:
Closed
ruby -v:
ruby 1.9.1p378 (2010-01-10 revision 26273) [x86_64-linux]
[ruby-core:27913]

Description

=begin
Using Net::IMAP against Dovecot (1.2.10) results in problems when switching between folders:

C: RUBY0003 SELECT sf-linkreq
S: * OK [CLOSED] Previous mailbox closed.
@str: "* OK [CLOSED] Previous mailbox closed.\r\n"
@pos: 13
@lex_state: EXPR_BEG
@token.symbol: RBRA
@token.value: "]"
/usr/lib/ruby/1.9.1/net/imap.rb:3136:in `parse_error': unexpected token RBRA (expected SPACE) (Net::IMAP::ResponseParseError)

This problem does not occur with Ruby 1.8:

C: RUBY0003 SELECT sf-linkreq
S: * OK [CLOSED] Previous mailbox closed.
S: * FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
S: * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft *)] Flags permitted.
S: * 48 EXISTS
S: * 0 RECENT
S: * OK [UIDVALIDITY 1264626539] UIDs valid
S: * OK [UIDNEXT 49] Predicted next UID
S: * OK [HIGHESTMODSEQ 1] Highest
S: RUBY0003 OK [READ-WRITE] Select completed.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0