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: Wed, 3 May 2006 08:23:02 -0700,    group: microsoft.public.exchange2000.development        back       


OnArrival Event Sink aborting delivery   
I swear that I had this working, but now it isn't.  I have a server that 
accepts all relay messages and I'm using an event sink to do some custom 
authentication.  When I get a message that has no valid recipients I need to 
abort delivery of the message.  Something is causing the message to be 
successfully delivered now.  When I determine that a message should be 
aborted I return to the ISMTPOnArrival.OnArrival method and set both of these:


EventStatus = CdoEventStatus.cdoSkipRemainingSinks;
this.message.EnvelopeFields[MESSAGESTATUS].Value = 
CdoMessageStat.cdoStatAbortDelivery;

At first I thought it could be an open handle, but the abort process takes 
place so early that I'm not accessing any parts of the message yet.

Thanks for looking
date: Wed, 3 May 2006 08:23:02 -0700   author:   David A. Coursey

Re: OnArrival Event Sink aborting delivery   
Without seeing your code it's hard to tell much.  I suspect there is some 
sort of error occuring before you hit this point.

John Fenton


"David A. Coursey"  wrote in message 
news:5E85509D-4A05-47D9-8DD8-FD85774ECDFD@microsoft.com...
>I swear that I had this working, but now it isn't.  I have a server that
> accepts all relay messages and I'm using an event sink to do some custom
> authentication.  When I get a message that has no valid recipients I need 
> to
> abort delivery of the message.  Something is causing the message to be
> successfully delivered now.  When I determine that a message should be
> aborted I return to the ISMTPOnArrival.OnArrival method and set both of 
> these:
>
>
> EventStatus = CdoEventStatus.cdoSkipRemainingSinks;
> this.message.EnvelopeFields[MESSAGESTATUS].Value =
> CdoMessageStat.cdoStatAbortDelivery;
>
> At first I thought it could be an open handle, but the abort process takes
> place so early that I'm not accessing any parts of the message yet.
>
> Thanks for looking
date: Tue, 30 May 2006 17:47:54 -0700   author:   John Fenton

Google
 
Web ureader.com


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