Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResponseParseError in envelope: unknown token - #{???} #191

Open
nevans opened this issue Oct 3, 2023 · 1 comment
Open

ResponseParseError in envelope: unknown token - #{???} #191

nevans opened this issue Oct 3, 2023 · 1 comment

Comments

@nevans
Copy link
Collaborator

nevans commented Oct 3, 2023

Parse errors in envelope fields. I'll add more details about these later. Right now I only have the stacktraces and the error message. These might be bugs in our code, or they might be server errors that we need to handle more gracefully.

Net::IMAP::ResponseParseError: unknown token - ""Fwd:"

/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser/parser_utils.rb:224 in parse_error
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:1620 in next_token
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser/parser_utils.rb:96 in NIL?
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:362 in nstring
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:542 in envelope
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:529 in envelope_data
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:502 in msg_att
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:482 in numeric_response
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:416 in response_untagged
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:387 in response
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:33 in parse

Net::IMAP::ResponseParseError: unknown token - "=E2=80=9DStar_Action_Shots""

/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser/parser_utils.rb:224 in parse_error
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:1620 in next_token
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser/parser_utils.rb:170 in lookahead
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser/parser_utils.rb:134 in match
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:1468 in address
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:1437 in address_list
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:550 in envelope
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:529 in envelope_data
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:502 in msg_att
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:482 in numeric_response
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:416 in response_untagged
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:387 in response
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:33 in parse

Net::IMAP::ResponseParseError: unexpected token NUMBER (expected SPACE)

/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:557 in envelope
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:529 in envelope_data
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:502 in msg_att
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:482 in numeric_response
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:416 in response_untagged
/bundler/gems/net-imap-e76475223002/lib/net/imap/response_parser.rb:387 in response
@nevans nevans mentioned this issue Oct 3, 2023
7 tasks
@nevans nevans changed the title unknown token - ""Fwd:" Net::IMAP::ResponseParseError: unknown token - ""Fwd:" Oct 3, 2023
@nevans nevans changed the title Net::IMAP::ResponseParseError: unknown token - ""Fwd:" Net::IMAP::ResponseParseError: unknown token - "\"Fwd:" Oct 3, 2023
@nevans nevans changed the title Net::IMAP::ResponseParseError: unknown token - "\"Fwd:" ResponseParseError in envelope: unknown token - #{???} Oct 3, 2023
@nevans
Copy link
Collaborator Author

nevans commented Oct 3, 2023

I'm actually using a forked version which has several workarounds for servers that send buggy quoted strings (containing NULL chars). This might even be an error in my forked version... or it might be that these responses were already failing to parse and I'm only now noticing them because I removed some deviations from my forked version!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant