mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 11:07:35 +00:00
LibIMAP: Support for CAPABILITY command & response
This involves parsing messages with untagged responses
This commit is contained in:
parent
ac712b07f9
commit
0f42ea6770
4 changed files with 55 additions and 0 deletions
|
@ -32,13 +32,22 @@ private:
|
|||
|
||||
bool try_consume(StringView);
|
||||
bool at_end() { return position >= m_buffer.size(); };
|
||||
|
||||
void parse_response_done();
|
||||
|
||||
void consume(StringView x);
|
||||
|
||||
unsigned parse_number();
|
||||
Optional<unsigned> try_parse_number();
|
||||
|
||||
void parse_untagged();
|
||||
|
||||
StringView parse_atom();
|
||||
|
||||
ResponseStatus parse_status();
|
||||
|
||||
StringView parse_while(Function<bool(u8)> should_consume);
|
||||
|
||||
void parse_capability_response();
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue