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

LibIMAP: Support for FETCH BodyStructure

This completes the implementation of the FETCH command.
This commit is contained in:
x-yl 2021-06-02 18:31:24 +04:00 committed by Ali Mohammad Pur
parent c152a9a594
commit 318709c8ca
4 changed files with 376 additions and 55 deletions

View file

@ -74,7 +74,7 @@ String FetchCommand::DataItem::serialize() const
return "UID";
case DataItemType::PeekBody:
TODO();
case DataItemType::BodySection:
case DataItemType::BodySection: {
StringBuilder sb;
sb.appendff("BODY[{}]", section.value().serialize());
if (partial_fetch) {
@ -83,6 +83,9 @@ String FetchCommand::DataItem::serialize() const
return sb.build();
}
case DataItemType::BodyStructure:
return "BODYSTRUCTURE";
}
VERIFY_NOT_REACHED();
}
String FetchCommand::serialize()