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

LibIMAP: Parse (but ignore) OK [HIGHESTMODSEQ <mod-sequence-value>]

Parse it to avoid dbgln() spam, but ignore the value for now. See:
https://datatracker.ietf.org/doc/html/rfc4551#section-3.1.1
This commit is contained in:
Linus Groh 2021-07-24 21:16:13 +01:00
parent 66e47d05c5
commit 028e4bd2ae

View file

@ -182,6 +182,10 @@ void Parser::parse_untagged()
consume(" ");
auto flags = parse_list(+[](StringView x) { return String(x); });
m_response.data().set_permanent_flags(move(flags));
} else if (actual_type == "HIGHESTMODSEQ"sv) {
consume(" ");
parse_number();
// No-op for now.
} else {
dbgln("Unknown: {}", actual_type);
consume_while([](u8 x) { return x != ']'; });