Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

I am getting size of email message as 1183. Is the value is in bytes? #682

@prvigneshkumar92

Description

@prvigneshkumar92

I am trying to fetch the size of an email message. Kindly find the below code

ItemView view = new ItemView(Integer.MAX_VALUE, 0,OffsetBasePoint.Beginning);
FindItemsResults findResults = service.findItems(WellKnownFolderName.Inbox,view);
for (Item item : findResults.getItems()) {
item.load();
EmailMessage message=(EmailMessage)item;
int size=message.getSize();
System.out.println(size);
}

Kindly help me in this regard

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions