1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:38:11 +00:00

LibIMAP: Support for LOGIN and LOGOUT

This commit is contained in:
x-yl 2021-06-01 19:10:20 +04:00 committed by Ali Mohammad Pur
parent 2f04d24b66
commit f00c2c0192
4 changed files with 31 additions and 0 deletions

View file

@ -179,6 +179,10 @@ void Parser::parse_untagged()
parse_while([](u8 x) { return x != '\r'; });
consume("\r\n");
}
} else if (try_consume("BYE")) {
auto message = parse_while([](u8 x) { return x != '\r'; });
consume("\r\n");
m_response.data().set_bye(message.is_empty() ? Optional<String>() : Optional<String>(message));
} else {
auto x = parse_while([](u8 x) { return x != '\r'; });
consume("\r\n");