mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03:00
LibIMAP+Mail: Rename MultiPartBody's mime_type to multipart_subtype
This commit is contained in:
parent
642a3f85ef
commit
f789d26e37
Notes:
sideshowbarker
2024-07-16 19:57:55 +09:00
Author: https://github.com/krkk Commit: https://github.com/SerenityOS/serenity/commit/f789d26e37 Pull-request: https://github.com/SerenityOS/serenity/pull/20923
@ -185,7 +185,7 @@ void MailWidget::on_window_close()
|
|||||||
|
|
||||||
IMAP::MultiPartBodyStructureData const* MailWidget::look_for_alternative_body_structure(IMAP::MultiPartBodyStructureData const& current_body_structure, Vector<u32>& position_stack) const
|
IMAP::MultiPartBodyStructureData const* MailWidget::look_for_alternative_body_structure(IMAP::MultiPartBodyStructureData const& current_body_structure, Vector<u32>& position_stack) const
|
||||||
{
|
{
|
||||||
if (current_body_structure.media_type.equals_ignoring_ascii_case("ALTERNATIVE"sv))
|
if (current_body_structure.multipart_subtype.equals_ignoring_ascii_case("ALTERNATIVE"sv))
|
||||||
return ¤t_body_structure;
|
return ¤t_body_structure;
|
||||||
|
|
||||||
u32 structure_index = 1;
|
u32 structure_index = 1;
|
||||||
|
@ -198,7 +198,7 @@ struct MultiPartBodyStructureData {
|
|||||||
Optional<Tuple<DeprecatedString, HashMap<DeprecatedString, DeprecatedString>>> disposition;
|
Optional<Tuple<DeprecatedString, HashMap<DeprecatedString, DeprecatedString>>> disposition;
|
||||||
Vector<OwnPtr<BodyStructure>> bodies;
|
Vector<OwnPtr<BodyStructure>> bodies;
|
||||||
Vector<DeprecatedString> langs;
|
Vector<DeprecatedString> langs;
|
||||||
DeprecatedString media_type;
|
DeprecatedString multipart_subtype;
|
||||||
Optional<HashMap<DeprecatedString, DeprecatedString>> params;
|
Optional<HashMap<DeprecatedString, DeprecatedString>> params;
|
||||||
Optional<DeprecatedString> location;
|
Optional<DeprecatedString> location;
|
||||||
Optional<Vector<BodyExtension>> extensions;
|
Optional<Vector<BodyExtension>> extensions;
|
||||||
|
@ -384,7 +384,7 @@ BodyStructure Parser::parse_body_structure()
|
|||||||
data.bodies.append(make<BodyStructure>(move(child)));
|
data.bodies.append(make<BodyStructure>(move(child)));
|
||||||
}
|
}
|
||||||
consume(" "sv);
|
consume(" "sv);
|
||||||
data.media_type = parse_string();
|
data.multipart_subtype = parse_string();
|
||||||
|
|
||||||
if (!try_consume(")"sv)) {
|
if (!try_consume(")"sv)) {
|
||||||
consume(" "sv);
|
consume(" "sv);
|
||||||
|
Loading…
Reference in New Issue
Block a user