mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibIMAP: Support for FETCH BodyStructure
This completes the implementation of the FETCH command.
This commit is contained in:
parent
c152a9a594
commit
318709c8ca
Notes:
sideshowbarker
2024-07-18 12:24:52 +09:00
Author: https://github.com/X-yl
Commit: 318709c8ca
Pull-request: https://github.com/SerenityOS/serenity/pull/7735
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/MaxWipfli
Reviewed-by: https://github.com/alimpfard
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