LibIMAP: Support for CAPABILITY command & response

This involves parsing messages with untagged responses
This commit is contained in:
x-yl 2021-06-01 17:42:12 +04:00 committed by Ali Mohammad Pur
commit 0f42ea6770
Notes: sideshowbarker 2024-07-18 12:25:12 +09:00
4 changed files with 55 additions and 0 deletions

View file

@ -112,6 +112,8 @@ static ReadonlyBytes command_byte_buffer(CommandType command)
switch (command) {
case CommandType::Noop:
return "NOOP"sv.bytes();
case CommandType::Capability:
return "CAPABILITY"sv.bytes();
}
VERIFY_NOT_REACHED();
}