Count Messages Per Conversation

M

minntac

My mailbox has grown to over 10K messages, and I need a way to
determine which conversations (threads) have the most entries in
them. I've found I can delete a lot of messages by deleting all but
the last conversation, because the last one contains the entire
thread.

Is there VBA code somewhere to be able to count the number of messages
in each conversation and dump it somewhere - the immediate window or
to a text file?

Any help would be appreciated.

Minntac
 
K

Ken Slovak - [MVP - Outlook]

Each message in a thread has the same ConversationTopic value. The first
message in the thread has a ConversationIndex that is 22 bytes long. Each
subsequent member of the thread increases the length of ConversationIndex by
5 bytes (a date/time struct).

So you can filter or restrict an Items collection of item in a folder based
on a ConversationTopic value and then count the lengths of ConversationIndex
to find the last items in the thread.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top