Skip to content

message.parts is null in FetchPreference.bodystructure #269

Description

@Tienisto

I don't know if it is intended behaviour but when fetching FetchPreference.bodystructure the field message.parts is null, while message.body?.parts is not.

final messages = await mailClient.fetchMessages(
  mailbox: inbox,
  count: 20,
  fetchPreference: FetchPreference.bodystructure,
);
for (MimeMessage message in messages) {
  print('AA ${message.body?.parts}'); // is not null
  print('BB ${message.parts}'); // is null
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions