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: 28 Mar 2006 05:26:08 -0800,    group: microsoft.public.exchange2000.development        back       


how to detect "meeting request" in ISMTPOnArrival_OnArrival   
Hi,
we are using ISMTPOnArrival_OnArrival to detect specific messages and
send them to a log-mailbox. But when meeting requests are sent then not
one recipient is receiving the request ....very annoying ...
Can we detect the message class or other property to bypass the event
sink at that moment ?
What code do we need to insert ?

recplist =
LCase(Msg.EnvelopeFields("http://schemas.microsoft.com/cdo/smtpenvelope/recipientlist"))
	recplist = recplist & "SMTP:marc@domain.com;"
	Msg.EnvelopeFields("http://schemas.microsoft.com/cdo/smtpenvelope/recipientlist")
= recplist
	Msg.EnvelopeFields.update
	Msg.DataSource.Save

Kind regards 
marc
date: 28 Mar 2006 05:26:08 -0800   author:   mdecroos

Re: how to detect "meeting request" in ISMTPOnArrival_OnArrival   
If you want to detect if a message is a calendar appointment try using 
something like

if Msg.fields("urn:schemas:mailheader:content-class").value = 
"urn:content-classes:calendarmessage" then

Cheers
Glen


"mdecroos"  wrote in message 
news:1143552368.061823.178570@i40g2000cwc.googlegroups.com...
> Hi,
> we are using ISMTPOnArrival_OnArrival to detect specific messages and
> send them to a log-mailbox. But when meeting requests are sent then not
> one recipient is receiving the request ....very annoying ...
> Can we detect the message class or other property to bypass the event
> sink at that moment ?
> What code do we need to insert ?
>
> recplist =
> LCase(Msg.EnvelopeFields("http://schemas.microsoft.com/cdo/smtpenvelope/recipientlist"))
> recplist = recplist & "SMTP:marc@domain.com;"
> Msg.EnvelopeFields("http://schemas.microsoft.com/cdo/smtpenvelope/recipientlist")
> = recplist
> Msg.EnvelopeFields.update
> Msg.DataSource.Save
>
> Kind regards
> marc
>
date: Wed, 29 Mar 2006 10:01:21 +1100   author:   Glen Scales [MVP]

Google
 
Web ureader.com


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