Duplicate mail items in public folders - avoidable?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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?
 
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.
 
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?
 
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
 
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?
 
Back
Top