I have a pretty complicated OnSyncSave event sink as an application front end that works some magic on the incoming messages. This sink handles probably 20k emails per day. When an error occurs I have code that emails the admins to notify them of the problem. Probably 25 times a day, a DSN comes into the event sink and causes errors. The event sink keeps working, but the I would like to filter the DSN's to keep the emergency error messages to a minimum. I would like to know what Fields I can read from the ADODB record after I open it to classify it as a DSN. I found the MIME type, but I don't work with the MIME types until later in my code and I want to filter these as soon as possible. example: This finds if the message has an attachment: rec.Fields["urn:schemas:httpmail:hasattachment"] I looked in Exchange Explorer, but I haven't been able to single out any DSN's. Any ideas would be greatly appreciated. Dave
Usually a DSN that is generated by exchange will have a DAV:Content class (and urn:schemas:mailheader:content-class) of urn:content-classes:dsn and the http://schemas.microsoft.com/exchange/outlookmessageclass will be REPORT.IPM.Note.NDR . If those aren't available the other one I would try is look for a X-header X-DSNContext eg rec.fields("urn:schemas:mailheader:X-DSNContext") Cheers Glen "David A. Coursey" wrote in message news:3C298973-7C28-4593-B8A8-C0D2696CF918@microsoft.com... >I have a pretty complicated OnSyncSave event sink as an application front >end > that works some magic on the incoming messages. This sink handles > probably > 20k emails per day. > > When an error occurs I have code that emails the admins to notify them of > the problem. Probably 25 times a day, a DSN comes into the event sink and > causes errors. The event sink keeps working, but the I would like to > filter > the DSN's to keep the emergency error messages to a minimum. > > I would like to know what Fields I can read from the ADODB record after I > open it to classify it as a DSN. I found the MIME type, but I don't work > with the MIME types until later in my code and I want to filter these as > soon > as possible. > > example: This finds if the message has an attachment: > rec.Fields["urn:schemas:httpmail:hasattachment"] > > I looked in Exchange Explorer, but I haven't been able to single out any > DSN's. > > Any ideas would be greatly appreciated. > > Dave