A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Count Messages Per Conversation



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 16th 08, 07:03 AM posted to microsoft.public.outlook.program_vba
[email protected]
external usenet poster
 
Posts: 2
Default Count Messages Per Conversation

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
Ads
  #2  
Old January 16th 08, 02:45 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Count Messages Per Conversation

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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


wrote in message
...
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


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Does anyone now how to make Outlook 2007 function like Gmail'sarchive features, where archived messages will reappear if a new message comesin with the same "conversation"? [email protected] Outlook - General Queries 2 November 30th 07 07:20 PM
Unread messages count incorrect on login screen molim Outlook Express 3 August 2nd 07 01:22 AM
Group messages by conversation, missing in Outlook? Trond Svendsen Outlook - General Queries 3 November 7th 06 01:08 PM
Detect read messages count changed xhantt Add-ins for Outlook 0 February 14th 06 04:06 PM
Advanced views.."By Conversation". Is it possible to have a view where I see only the first Item of a conversation? [email protected] Outlook - General Queries 2 February 1st 06 08:41 PM


All times are GMT +1. The time now is 06:55 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.