are you sure you're setting the imProfileMessageID property value to the MAPI object's PR_INTERNET_MESSAGE_ID property value?
The ID should look something like
<
20060424194714.28714.qmail@web34305.mail.mud.yahoo.com
>
the value's angular parentheses ("<" and ">") seem to be removed when you drag'n'drop a message to a FileSite folder, so remember to strip these out before you set the property
explain a little what you mean by getting multiple copies
how are you importing the email? and how are you then testing whether it has been added as a unique record?
my code to import emails creates a new IManDocument, populates all the relevant properties, and most importantly sets the imProfileMessageUniqueID attribute. Something like:
// doc will most likely be a new IManDocument object instanced with the CreateDocument method
// PR_INTERNET_MESSAGE_ID is the passed-in unique MAPI key of the message
doc.SetAttributebyId(IManage.imProfileAttributeId.imProfileMessageUniqueID, PR_INTERNET_MESSAGE_ID);
I then add the new IManDocument reference to the target FileSite folder
I can test it's unique by trying to manually drag over the recently imported message to the target folder, and hey presto FileSite warns me it's already there
You could also test by creating a search using an instance of the IManPRofileSearchParameters and setting the imProfileContainerID to the target folder, and the imProfileMessageUniqueID to the PR_INTERNET_MESSAGE_ID of the message.
is this way off track?