Checking for address doublets in a folder

  • Thread starter Thread starter Gordon Filby
  • Start date Start date
G

Gordon Filby

hallo,

I have to manage long lists (ca. 500) of changing Email addresses in the
default drafts folder. The source from which I copy them (a database of
scientific publications) definitely has multiplets ( same author with same
Email address but with a different report) so to avoid the same author
getting the same mail several times, I would like to check the list before
adding a new item.

I envisage something like:

for all the mails in DraftsFolder
if MailToInsert.Address = AFileInDrafts.Address
Delete.AFileInDrafts.Address

I want only one instance of an Email in each set.

Can anyone help with this one?

Many thanks.

Gordon Filby
 
You can check each MailItem in the Drafts folder for its Recipients
collection or for MailItem.To. That would fire the security prompts in
secure versions of Outlook of course unless you used Redemption
(www.dimastr.com/redemption) or Extended MAPI code or ran the code as
trusted code.
 
Back
Top