QueryPaste Document Handle

Is there any way to get a handle on the document being pasted in the QueryPaste event? I have a database that users can copy mail documents into but do not want them to be able to copy the same document twice. I was thinking if I could get the unique id of the document being pasted in the QueryPaste event I could determine if it was a duplicate.

Any help would be greatly appreciated.

Subject: Figured it out

Well… I couldn’t figure out how to get a handle on the document in the QueryPaste event but I was able to use the $Orig field in the email document, store that in a CopyID field in the newly pasted document. When trying to copy the same email I just looked to a look up view sorted by CopyID and if I find the same value then prompt the user and remove the pasted document before exiting the PostPaste event.