get count of all emails with same conversation ID

Status
Not open for further replies.

Iqbal Khan

New Member
Best answers
0
Outlook version
Outlook 2013 64 bit
Email Account
POP3
I am trying to move emails with same conversation id to a folder.

Right now I am using loop to search all the emails to look for conversation ID and move the email However the Inbox has more than 4000 emails in it hence it is taking time as I am trying to move the emails in Inbox in the Item_send event.

Is there a faster way to get the count of emails with similar conversation id so that I can break the once all the emails are found.

thank you.
 

Iqbal Khan

New Member
Best answers
0
Outlook version
Outlook 2013 64 bit
Email Account
POP3
Thank You, Diane

I used restrict to limit the results to the given conversation id and was able to do it as below.

Code:
Set sitems = Ns.GetDefaultFolder(olFolderInbox).Items.Restrict("[ConversationTopic]='" & UMail.ConversationTopic & "'")
 
Status
Not open for further replies.
Top