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, 7 Dec 2005 11:48:02 -0800,    group: microsoft.public.exchange2000.development        back       


intercepting email messages with ISMTPOnArrival_OnArrival   
im trying to write in event sink in VB using ISMTPOnArrival_OnArrival

what i want to do, is based on the from email address i want to be able to 
save an entire email message to a file/database when certin conditions are 
met. 

later i'd like to drop the message in the PICKUP folder for normal delivery.

thanks,
josh
date: Wed, 7 Dec 2005 11:48:02 -0800   author:   josh

Re: intercepting email messages with ISMTPOnArrival_OnArrival   
You should be able to get the from address from the 
urn:schemas:httpmail:fromemail property. As for saving the message you could 
use the ADODB streams interface to do this eg

 set stm = objMessage.getstream()
 stm.savetofile fname

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wss/wss/_cdo_imessage_interface.asp

Cheers
Glen


"josh"  wrote in message 
news:DED3265B-00B6-41AC-A60F-B4CF56807992@microsoft.com...
> im trying to write in event sink in VB using ISMTPOnArrival_OnArrival
>
> what i want to do, is based on the from email address i want to be able to
> save an entire email message to a file/database when certin conditions are
> met.
>
> later i'd like to drop the message in the PICKUP folder for normal 
> delivery.
>
> thanks,
> josh
>
date: Thu, 8 Dec 2005 10:38:09 +1100   author:   Glen Scales [MVP]

Re: intercepting email messages with ISMTPOnArrival_OnArrival   
thanks for your reply.  how about stopping a message for delivery?


thanks,
josh
date: 8 Dec 2005 06:53:51 -0800   author:   unknown

Re: intercepting email messages with ISMTPOnArrival_OnArrival   
To abort delivery of a message in a SMTP event sink use the messagestatus 
envelope property see 
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wss/wss/_cdo_schema_smtpenvelope_messagestatus.asp

eg

   Set objFields = objMessage.EnvelopeFields
   With objFields
    .Item("http://schemas.microsoft.com/cdo/smtpenvelope/messagestatus").Value 
= 3
    .Update
    EventStatus = cdoSkipRemainingSinks
   End With

Cheers
Glen

 wrote in message 
news:1134053631.525302.199350@o13g2000cwo.googlegroups.com...
> thanks for your reply.  how about stopping a message for delivery?
>
>
> thanks,
> josh
>
date: Fri, 9 Dec 2005 08:46:04 +1100   author:   Glen Scales [MVP]

Google
 
Web ureader.com


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