LibIMAP+Mail: Rename MultiPartBody's mime_type to multipart_subtype

This commit is contained in:
Karol Kosek 2023-09-02 22:29:07 +02:00 committed by Andrew Kaster
parent 642a3f85ef
commit f789d26e37
Notes: sideshowbarker 2024-07-16 19:57:55 +09:00
3 changed files with 3 additions and 3 deletions

View File

@ -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
{
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 &current_body_structure;
u32 structure_index = 1;

View File

@ -198,7 +198,7 @@ struct MultiPartBodyStructureData {
Optional<Tuple<DeprecatedString, HashMap<DeprecatedString, DeprecatedString>>> disposition;
Vector<OwnPtr<BodyStructure>> bodies;
Vector<DeprecatedString> langs;
DeprecatedString media_type;
DeprecatedString multipart_subtype;
Optional<HashMap<DeprecatedString, DeprecatedString>> params;
Optional<DeprecatedString> location;
Optional<Vector<BodyExtension>> extensions;

View File

@ -384,7 +384,7 @@ BodyStructure Parser::parse_body_structure()
data.bodies.append(make<BodyStructure>(move(child)));
}
consume(" "sv);
data.media_type = parse_string();
data.multipart_subtype = parse_string();
if (!try_consume(")"sv)) {
consume(" "sv);