I am grabbing all outbound emails using an ISmtpOutCommandSink event sink to see who the emails are going to. Some details of the mail (to, from, id) are getting put on an MSMQ queue. The goal is to then check all the emails that were sent, and if they were going to customers then grab the email from Exchange using webdav, and add it the database. Is there a way I can find out the dav:href property from a mail triggered by an SMTP event?
Once you've received the event in a Transport sink, the item is a *copy* of something that exists (or existed) in a mailbox - at this point it doesn't have a DAV:href property because it is not located in the Store. Regards, - Karim Batthish, Microsoft wrote in message news:1121673488.457768.202150@g14g2000cwa.googlegroups.com... >I am grabbing all outbound emails using an ISmtpOutCommandSink event > sink to see who the emails are going to. Some details of the mail (to, > from, id) are getting put on an MSMQ queue. > > The goal is to then check all the emails that were sent, and if they > were going to customers then grab the email from Exchange using webdav, > and add it the database. > > Is there a way I can find out the dav:href property from a mail > triggered by an SMTP event? >
Thanks Karim. I'm just trying to get my head around all this stuff! So I'll follow up with some more questions :) If it's a copy, is there anyway to figure out what it's a copy of? Is there anyway I can match an outbound mail to an item in the exchange store? Would it be wise or unwise to do a store wide search on the urn:schemas:mailheader:message-id? Thank you!
Or alternatively, is it possible to find out its exchange info using the CDO OnArrival sink?