Hi everybody, we are monitoring some mail accounts say A, B C. Any new mail arriving in these mailboxes is also routed to a particular MailBox say X for monitoring. Now X is getting a copy of what ever A (also B C .. etc) is receiving. If we want to (say) delete a particular mail from A's mailbox after examining it from X, How can we cross-reference (map) that particular mail in the A's mailbox. Is there any property / tag that is unique for a particular mail in both the mail boxes ? Currently we are trying to workout the solution in WebDav, but can also switch to MAPI or any other tech. through which solution is feasible. Looking for the valuable suggestions. Thanks n Regards Sarabjit S. Rupaal
Probably urn:schemas:mailheader:message-id http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/html/3f0e28c9-4dc6-4c15-98b6-2f9cc326a343.asp would be the best thing to use you should be able query this on the other mailboxes. It might however depend on how you are producing the copy that X is receiving. Cheers Glen wrote in message news:1136813577.611109.191280@g43g2000cwa.googlegroups.com... > Hi everybody, > > we are monitoring some mail accounts say A, B C. Any new mail arriving > in these mailboxes is also routed to a particular MailBox say X for > monitoring. > > Now X is getting a copy of what ever A (also B C .. etc) is receiving. > If we want to (say) delete a particular mail from A's mailbox after > examining it from X, How can we cross-reference (map) that particular > mail in the A's mailbox. Is there any property / tag that is unique for > a particular mail in both the mail boxes ? > > Currently we are trying to workout the solution in WebDav, but can also > switch to MAPI or any other tech. through which solution is feasible. > > Looking for the valuable suggestions. > > Thanks n Regards > Sarabjit S. Rupaal >
Thanks Glen We are successfully getting a unique message-id for a pair using WebDav. Any idea on how can we extract / refer the same (urn:schemas:mailheader:message-id) using Outlook MAPIs ? Will feel obliged to get a Code sample (or a link to it). Regards Sarabjit S. Rupaal Glen Scales [MVP] wrote: > Probably urn:schemas:mailheader:message-id > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/html/3f0e28c9-4dc6-4c15-98b6-2f9cc326a343.asp > would be the best thing to use you should be able query this on the other > mailboxes. It might however depend on how you are producing the copy that X > is receiving. > > Cheers > Glen
You should be able to use the PR_INTERNET_MESSAGE_ID mapi property you need to use CDO 1.2 or Extended Mapi I don't think this is available though the Outlook Object Model. In CDO 1.2 something like this should work. set objSession = CreateObject("MAPI.Session") strProfile = "servername" & vbLf & "mailbox" objSession.Logon "",,, False,, True, strProfile Set objInbox = objSession.Inbox Set objMsgColl = objInbox.Messages Set objMsgFilter = objMsgColl.Filter objMsgFilter.Fields(&H1035001E) = "" For Each objMess in objMsgColl Wscript.echo objmess.subject Next Cheers Glen wrote in message news:1136882521.433127.9820@g14g2000cwa.googlegroups.com... > Thanks Glen > We are successfully getting a unique message-id for a pair using > WebDav. > Any idea on how can we extract / refer the same > (urn:schemas:mailheader:message-id) using Outlook MAPIs ? > Will feel obliged to get a Code sample (or a link to it). > > Regards > Sarabjit S. Rupaal > > Glen Scales [MVP] wrote: >> Probably urn:schemas:mailheader:message-id >> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/html/3f0e28c9-4dc6-4c15-98b6-2f9cc326a343.asp >> would be the best thing to use you should be able query this on the other >> mailboxes. It might however depend on how you are producing the copy that >> X >> is receiving. >> >> Cheers >> Glen >