We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Common identifiers for mails in conversation - Aspose.Email - Java


We are using Aspose.Email for Java Version 17.2 to parse MapiMessages from a PersonalStorage class.

We would like a single identifier to reference multiple mails in a conversation, the way outlook does. Towards this, we have tried to read PidTagConversationId = 0x30130102 and MapiMessage.getConversationTopic() .Unfortunately, neither of these fields addresses this need.

Can someone please point out how we could use the Aspose library to achieve our requirement?


Hi Shankar,

Thank you for contacting Aspose support team.

We can get the item id (entryId) only if message is in the PST storage, as this id is not stored in a mapi property collection. But the conversation/thread id is stored in PR_CONVERSATION_INDEX mapi property and may be obtained by the following example:

byte[] conversationId = msg.getProperties().get_Item(MapiPropertyTag.PR_CONVERSATION_INDEX).getData();