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:
parent
c152a9a594
commit
318709c8ca
4 changed files with 376 additions and 55 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue