Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Tue, 18 Oct 2005 07:11:01 -0700,    group: microsoft.public.exchange2000.development        back       


Event Sink + MIME + Filtering DSN's   
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
date: Tue, 18 Oct 2005 07:11:01 -0700   author:   David A. Coursey

Re: Event Sink + MIME + Filtering DSN's   
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
date: Wed, 19 Oct 2005 12:39:31 +1000   author:   Glen Scales [MVP]

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us