1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:37:46 +00:00

LibIMAP: Don't parse starting space directly in parse_envelope

Makes parse_envelope() look like the defined ABNF rule and the parser
will no longer try to consume double spaces in body-type-msg.
This commit is contained in:
Karol Kosek 2023-09-03 01:21:06 +02:00 committed by Andrew Kaster
parent e9cf35fd60
commit 4a92d712ea

View file

@ -299,6 +299,7 @@ FetchResponseData Parser::parse_fetch_response()
break;
}
case FetchCommand::DataItemType::Envelope: {
consume(" "sv);
fetch_response.set_envelope(parse_envelope());
break;
}