MAPI and OnArrival OnMessageSubmission
Exchange Server Forum Index Exchange Server
Discussion forums for Microsoft Exchange Server users.
Microsoft Outlook
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web ExchangeServerHelp.com
MAPI and OnArrival OnMessageSubmission

 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development
Author Message
Vincent Daron
Guest





Posted: Wed Aug 24, 2005 4:59 pm    Post subject: MAPI and OnArrival OnMessageSubmission Reply with quote

Hi

I'd like to create a sink to catch internal exchange MAPI messages. the
OnArrival and OnMessageSubmission seems only work on SMTP and my test
with OnMessageSubmission only catch External Email...

I know it's possible as the ArchiveSink of Microsoft is able to filter
MAPI messages and SMTP messages and put theml in two separate directory.

My complete objective is to cancel all internal email delivery and send
every internal email to another SMTP server.

Thanks for help

Vincent

Back to top
Vincent Daron
Guest





Posted: Thu Aug 25, 2005 5:00 pm    Post subject: Re: MAPI and OnArrival OnMessageSubmission Reply with quote

Well

It seems that it's not possible by using OnArrival, OnMesageSubmission,
.... to catch Exchange Inter-Organization messages becauses these events
are working on the SMTP Service that is not used for localdelivery. Is
it right ?

Therefore how is the Microsoft ArchiveSink able to do that ?

Thanks for answer, I'm sinking

Vincent

Vincent Daron wrote:
Quote:
Hi

I'd like to create a sink to catch internal exchange MAPI messages. the
OnArrival and OnMessageSubmission seems only work on SMTP and my test
with OnMessageSubmission only catch External Email...

I know it's possible as the ArchiveSink of Microsoft is able to filter
MAPI messages and SMTP messages and put theml in two separate directory.

My complete objective is to cancel all internal email delivery and send
every internal email to another SMTP server.

Thanks for help

Vincent
Back to top
Graham Wright
Guest





Posted: Sun Aug 28, 2005 12:58 am    Post subject: Re: MAPI and OnArrival OnMessageSubmission Reply with quote

To intercept mail messages sent internally you need to write an Exchange
sink component.
This is a component that implements IExStoreAsyncEvents
Searching MSDN for this interface wil show example code in both C# and C++


"Vincent Daron" <tropico@tiscali.be> wrote in message
news:eRydGPXqFHA.3352@TK2MSFTNGP14.phx.gbl...
Quote:
Well

It seems that it's not possible by using OnArrival, OnMesageSubmission,
... to catch Exchange Inter-Organization messages becauses these events
are working on the SMTP Service that is not used for localdelivery. Is
it right ?

Therefore how is the Microsoft ArchiveSink able to do that ?

Thanks for answer, I'm sinking

Vincent

Vincent Daron wrote:
Hi

I'd like to create a sink to catch internal exchange MAPI messages. the
OnArrival and OnMessageSubmission seems only work on SMTP and my test
with OnMessageSubmission only catch External Email...

I know it's possible as the ArchiveSink of Microsoft is able to filter
MAPI messages and SMTP messages and put theml in two separate directory.

My complete objective is to cancel all internal email delivery and send
every internal email to another SMTP server.

Thanks for help

Vincent


Back to top
Vincent Daron
Guest





Posted: Mon Aug 29, 2005 3:22 pm    Post subject: Re: MAPI and OnArrival OnMessageSubmission Reply with quote

Thanks for answer

I suppose that I have to look at the flag to see new Delivery. Can I
delete the saved item in the OnSave event ?

How can I made the differnce between local delivery or SMTP delivery ?

Thanks

Vincent

Graham Wright wrote:
Quote:
To intercept mail messages sent internally you need to write an Exchange
sink component.
This is a component that implements IExStoreAsyncEvents
Searching MSDN for this interface wil show example code in both C# and C++


"Vincent Daron" <tropico@tiscali.be> wrote in message
news:eRydGPXqFHA.3352@TK2MSFTNGP14.phx.gbl...

Well

It seems that it's not possible by using OnArrival, OnMesageSubmission,
... to catch Exchange Inter-Organization messages becauses these events
are working on the SMTP Service that is not used for localdelivery. Is
it right ?

Therefore how is the Microsoft ArchiveSink able to do that ?

Thanks for answer, I'm sinking

Vincent

Vincent Daron wrote:

Hi

I'd like to create a sink to catch internal exchange MAPI messages. the
OnArrival and OnMessageSubmission seems only work on SMTP and my test
with OnMessageSubmission only catch External Email...

I know it's possible as the ArchiveSink of Microsoft is able to filter
MAPI messages and SMTP messages and put theml in two separate directory.

My complete objective is to cancel all internal email delivery and send
every internal email to another SMTP server.

Thanks for help

Vincent


Back to top
Graham Wright
Guest





Posted: Tue Aug 30, 2005 12:00 am    Post subject: Re: MAPI and OnArrival OnMessageSubmission Reply with quote

Yes you can delete the mail item after you have processed it.
My own application extracts attachments on an async OnSave event and then
deletes the mail.
The event fires after the mail has been delivered to the inbox but it is
delivered within a couple of seconds.
I was having some problems with the deletion and had posted a question about
this ("CDO to ADO") when I cam across your post.
The code for all this is fairly simple (mine is C++) but there are C#
examples around.
My main problem was getting the exact syntax for installing the component
into Exchange (regevent.vbs) and setting it up as a COM+ (a requirement for
Exchange)

--
Graham Wright

"Vincent Daron" <tropico@tiscali.be> wrote in message
news:ebxp$NIrFHA.3060@TK2MSFTNGP09.phx.gbl...
Quote:
Thanks for answer

I suppose that I have to look at the flag to see new Delivery. Can I
delete the saved item in the OnSave event ?

How can I made the differnce between local delivery or SMTP delivery ?

Thanks

Vincent

Graham Wright wrote:
To intercept mail messages sent internally you need to write an Exchange
sink component.
This is a component that implements IExStoreAsyncEvents
Searching MSDN for this interface wil show example code in both C# and
C++


"Vincent Daron" <tropico@tiscali.be> wrote in message
news:eRydGPXqFHA.3352@TK2MSFTNGP14.phx.gbl...

Well

It seems that it's not possible by using OnArrival, OnMesageSubmission,
... to catch Exchange Inter-Organization messages becauses these events
are working on the SMTP Service that is not used for localdelivery. Is
it right ?

Therefore how is the Microsoft ArchiveSink able to do that ?

Thanks for answer, I'm sinking

Vincent

Vincent Daron wrote:

Hi

I'd like to create a sink to catch internal exchange MAPI messages. the
OnArrival and OnMessageSubmission seems only work on SMTP and my test
with OnMessageSubmission only catch External Email...

I know it's possible as the ArchiveSink of Microsoft is able to filter
MAPI messages and SMTP messages and put theml in two separate directory.

My complete objective is to cancel all internal email delivery and send
every internal email to another SMTP server.

Thanks for help

Vincent


Back to top
 
Post new topic   Reply to topic    Exchange Server Forum Index -> Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server Dedicated Servers
Contact Us
New Topics Powered by phpBB