mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibIMAP: Implement serializing FetchCommands with PeekBody type
This commit is contained in:
parent
b5bfe732d7
commit
2132e0f1bb
Notes:
sideshowbarker
2024-07-17 02:55:44 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/2132e0f1bb Pull-request: https://github.com/SerenityOS/serenity/pull/20292
1 changed files with 4 additions and 2 deletions
|
@ -74,10 +74,12 @@ DeprecatedString FetchCommand::DataItem::serialize() const
|
|||
case DataItemType::UID:
|
||||
return "UID";
|
||||
case DataItemType::PeekBody:
|
||||
TODO();
|
||||
case DataItemType::BodySection: {
|
||||
StringBuilder sb;
|
||||
sb.appendff("BODY[{}]", section.value().serialize());
|
||||
if (type == DataItemType::BodySection)
|
||||
sb.appendff("BODY[{}]", section.value().serialize());
|
||||
else
|
||||
sb.appendff("BODY.PEEK[{}]", section.value().serialize());
|
||||
if (partial_fetch) {
|
||||
sb.appendff("<{}.{}>", start, octets);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue