Duplicate mail items in public folders - avoidable?

E

Eric Chasman

I have public folders that users can copy/move their emails into. Is there a way to avoid having copies of emails in that folder? For example, if 2 users are copied on an email, and both users copy/move that email into the public folder, is there a way to only allow 1 copy of the email to exist in that public folder?

Thanks much.
 
K

Ken Slovak - [MVP - Outlook]

Trap ItemAdd on the Items collection of that folder and check each
item in the folder to see if any matches the new item.




Eric Chasman said:
I have public folders that users can copy/move their emails into.
Is there a way to avoid having copies of emails in that folder? For
example, if 2 users are copied on an email, and both users copy/move
that email into the public folder, is there a way to only allow 1 copy
of the email to exist in that public folder?
 
E

Eric Chasman

Do I compare the EntryID's of the items? Won't those be different for the same email in different user's mailboxes? Is there something I can compare that will be unique?

Thanks.
 
K

Ken Slovak - [MVP - Outlook]

Finding duplicates is a problem. Each EntryID would be unique so
that's no help at all. I usually just compare a few properties such as
sender and body. The more properties you test the more likely you are
to get the best matches.




Eric Chasman said:
Do I compare the EntryID's of the items? Won't those be different
for the same email in different user's mailboxes? Is there something
I can compare that will be unique?
 
E

Eric Chasman

I was afraid of that. Is there no way to tell two emails apart? If an email is sent to 2 people, there is no way to check if those two emails are really the same email without checking the properties

Thanks.

----- Ken Slovak - [MVP - Outlook] wrote: ----

Finding duplicates is a problem. Each EntryID would be unique s
that's no help at all. I usually just compare a few properties such a
sender and body. The more properties you test the more likely you ar
to get the best matches

-
Ken Slova
[MVP - Outlook
http://www.slovaktech.co
Author: Absolute Beginners Guide to Microsoft Office Outlook 200
Reminder Manager, Extended Reminders, Attachment Option
http://www.slovaktech.com/products.ht


Eric Chasman said:
Do I compare the EntryID's of the items? Won't those be differen
for the same email in different user's mailboxes? Is there somethin
I can compare that will be unique
 
K

Ken Slovak - [MVP - Outlook]

Nope, that's about it. EntryID is a unique identifier for an item but
a duplicate of that item would have its own different EntryID.
Property comparisons are the only way to go.




Eric Chasman said:
I was afraid of that. Is there no way to tell two emails apart? If
an email is sent to 2 people, there is no way to check if those two
emails are really the same email without checking the properties?
 

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