Count Messages Per Conversation

  • Thread starter Thread starter minntac
  • Start date Start date
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
 
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.
 
Back
Top