How to get the following values and what they mean in PST File via Java

Hello @MaazHussain ,

The issue EMAILJAVA-35367 has been resolved, and the fix will be released in the upcoming Aspose.Email for Java 25.4 version on May 5–6.

Ok Thanks for the update @sergey.vivsiuk

@MaazHussain,

You are welcome.

@margarita.samodurova / @sergey.vivsiuk

Do we have any plans on supporting mark as read and unread for multiple mails at once in a folder?
As of now I have to do it for single mails like this.

public static void markAsReadUnread(PersonalStorage pst, String messageId, boolean isUnread) {
        MapiMessage msg = pst.extractMessage(messageId);
        MapiPropertyCollection updatedProperties = new MapiPropertyCollection();

        long flags = msg.getFlags();
        if (isUnread) {
            flags &= ~MapiMessageFlags.MSGFLAG_READ;
        } else {
            flags |= MapiMessageFlags.MSGFLAG_READ;
        }

        updatedProperties.add(new MapiProperty(MapiPropertyTag.PR_MESSAGE_FLAGS, intToPT_LONG((int) flags)));

        pst.changeMessage(messageId, updatedProperties);
    }

I would like to pass array of [messageIds] and would like it to update for the whole. Cause doing for each single mail is taking a lot of time when we would like to mark more than 50 - 100 mails as read or unread.

Hello @MaazHussain,

We will explore the possibility of introducing a method that supports batch updates of message flags with improved performance.

A corresponding ticket has been created in our internal tracking system to investigate this feature further.

Issue ID(s): EMAILJAVA-35374
1 Like

Hello @margarita.samodurova we need the same support for .Net too, please loop me on this update

Hello @Devishree.

All feature requests and enhancements made for Java are also tracked for .NET and vice versa. The .NET ticket is already in place.