|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
is there a way to do thishey all,
i've installed the exchange sdk and tried a couple of the samples. exchange store sinks and the notification sample app. i think what i need is the notification sample app but i'm not sure. here's what i'm trying to do. i'd like to write an application against the exchange server that will trap an incoming mail event for a particular mailbox. Once that happens, i'd like to manipulate that new message and check for an attachment, if it has an attachment read it or save it and that's it. Is this possible, if so, please let me know. thanks, ari That is possible to implement. Question is which technology you want to use.
I would suggest you to use WebDAV protocol. Check methods SUBSCRIBE / NOTIFY / POLL in Exchange SDK documentation. Michael ------------------------------- If you need WebDAV API for Exchange server, use our component WebDAV .NET for Exchange. Check out http://www.independentsoft.com Show quote "ari" <a**@discussions.microsoft.com> wrote in message news:0C28F4CB-9ED0-4E6C-81DB-9F0290F7F49B@microsoft.com... > hey all, > > i've installed the exchange sdk and tried a couple of the samples. exchange > store sinks and the notification sample app. i think what i need is the > notification sample app but i'm not sure. > > here's what i'm trying to do. i'd like to write an application against the > exchange server that will trap an incoming mail event for a particular > mailbox. Once that happens, i'd like to manipulate that new message and check > for an attachment, if it has an attachment read it or save it and that's it. > > Is this possible, if so, please let me know. > > thanks, > ari Hello,
another approach to what Micheal suggested is the use of an EventSink. See http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_using_store_events.asp for more information on this. Greetings, Henning Krause MVP - Exchange http://www.infinitec.de Show quote "ari" <a**@discussions.microsoft.com> wrote in message news:0C28F4CB-9ED0-4E6C-81DB-9F0290F7F49B@microsoft.com... > hey all, > > i've installed the exchange sdk and tried a couple of the samples. > exchange > store sinks and the notification sample app. i think what i need is the > notification sample app but i'm not sure. > > here's what i'm trying to do. i'd like to write an application against the > exchange server that will trap an incoming mail event for a particular > mailbox. Once that happens, i'd like to manipulate that new message and > check > for an attachment, if it has an attachment read it or save it and that's > it. > > Is this possible, if so, please let me know. > > thanks, > ari what is the difference between the 2 technologies? Between the notification
sample and the sinks? From what i've read about the sinks i haven't seen a way to capture an incoming mail event. all i see about sinks are onSave, onDelete, onSyncSave, when do these ever happen in exchange anyway. ari. Show quote "Henning Krause [MVP - Exchange]" wrote: > Hello, > > another approach to what Micheal suggested is the use of an EventSink. See > http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_using_store_events.asp > for more information on this. > > Greetings, > Henning Krause > MVP - Exchange > http://www.infinitec.de > > > "ari" <a**@discussions.microsoft.com> wrote in message > news:0C28F4CB-9ED0-4E6C-81DB-9F0290F7F49B@microsoft.com... > > hey all, > > > > i've installed the exchange sdk and tried a couple of the samples. > > exchange > > store sinks and the notification sample app. i think what i need is the > > notification sample app but i'm not sure. > > > > here's what i'm trying to do. i'd like to write an application against the > > exchange server that will trap an incoming mail event for a particular > > mailbox. Once that happens, i'd like to manipulate that new message and > > check > > for an attachment, if it has an attachment read it or save it and that's > > it. > > > > Is this possible, if so, please let me know. > > > > thanks, > > ari > > > Hello,
the OnSyncSave event sink is triggered whenever a mail is saved or changed in a folder. This happens synchronously, so you can abort the process if needed. OnSave is triggered, after an item has been created or updated in a folder. You can either write this event sink using vbscript, or, if performance is crucial, as COM+ application using .NET, C++ or Visual Basic 6. The event sink is registered directly on the Exchange server and uses ADO with the ExOleDB Provider to access the data. Subscribe on the other hand, uses WebDAV to access the server and works accross the network. Your code is notified by an UDP packet. So, your code does not have to run on the Exchange Server. A backdraw of this approach is that you must keep the subscription alive by refreshing it periodically. And you do not get the URL of the created or modified item. Instead, you are only notifed that something has happened on the folder. You must then search for new items manually. Greetings, Henning Krause MVP - Exchange http://www.infinitec.de Show quote "ari" <a**@discussions.microsoft.com> wrote in message news:5097CD4A-B4CC-497E-9223-032C91C65308@microsoft.com... > what is the difference between the 2 technologies? Between the > notification > sample and the sinks? From what i've read about the sinks i haven't seen a > way to capture an incoming mail event. > > all i see about sinks are onSave, onDelete, onSyncSave, when do these ever > happen in exchange anyway. > > ari. > > "Henning Krause [MVP - Exchange]" wrote: > >> Hello, >> >> another approach to what Micheal suggested is the use of an EventSink. >> See >> http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_using_store_events.asp >> for more information on this. >> >> Greetings, >> Henning Krause >> MVP - Exchange >> http://www.infinitec.de >> >> >> "ari" <a**@discussions.microsoft.com> wrote in message >> news:0C28F4CB-9ED0-4E6C-81DB-9F0290F7F49B@microsoft.com... >> > hey all, >> > >> > i've installed the exchange sdk and tried a couple of the samples. >> > exchange >> > store sinks and the notification sample app. i think what i need is the >> > notification sample app but i'm not sure. >> > >> > here's what i'm trying to do. i'd like to write an application against >> > the >> > exchange server that will trap an incoming mail event for a particular >> > mailbox. Once that happens, i'd like to manipulate that new message and >> > check >> > for an attachment, if it has an attachment read it or save it and >> > that's >> > it. >> > >> > Is this possible, if so, please let me know. >> > >> > thanks, >> > ari >> >> >> so which event sink method would i use to trap a new mail event? and where in
the sdk would i look to understand how to manipulate that new email (like reading it, saving its attachments for instance)? thanks, ari Show quote "Henning Krause [MVP - Exchange]" wrote: > Hello, > > the OnSyncSave event sink is triggered whenever a mail is saved or changed > in a folder. This happens synchronously, so you can abort the process if > needed. OnSave is triggered, after an item has been created or updated in a > folder. You can either write this event sink using vbscript, or, if > performance is crucial, as COM+ application using .NET, C++ or Visual Basic > 6. The event sink is registered directly on the Exchange server and uses ADO > with the ExOleDB Provider to access the data. > > Subscribe on the other hand, uses WebDAV to access the server and works > accross the network. Your code is notified by an UDP packet. So, your code > does not have to run on the Exchange Server. A backdraw of this approach is > that you must keep the subscription alive by refreshing it periodically. And > you do not get the URL of the created or modified item. Instead, you are > only notifed that something has happened on the folder. You must then search > for new items manually. > > Greetings, > Henning Krause > MVP - Exchange > http://www.infinitec.de > > > "ari" <a**@discussions.microsoft.com> wrote in message > news:5097CD4A-B4CC-497E-9223-032C91C65308@microsoft.com... > > what is the difference between the 2 technologies? Between the > > notification > > sample and the sinks? From what i've read about the sinks i haven't seen a > > way to capture an incoming mail event. > > > > all i see about sinks are onSave, onDelete, onSyncSave, when do these ever > > happen in exchange anyway. > > > > ari. > > > > "Henning Krause [MVP - Exchange]" wrote: > > > >> Hello, > >> > >> another approach to what Micheal suggested is the use of an EventSink. > >> See > >> http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_using_store_events.asp > >> for more information on this. > >> > >> Greetings, > >> Henning Krause > >> MVP - Exchange > >> http://www.infinitec.de > >> > >> > >> "ari" <a**@discussions.microsoft.com> wrote in message > >> news:0C28F4CB-9ED0-4E6C-81DB-9F0290F7F49B@microsoft.com... > >> > hey all, > >> > > >> > i've installed the exchange sdk and tried a couple of the samples. > >> > exchange > >> > store sinks and the notification sample app. i think what i need is the > >> > notification sample app but i'm not sure. > >> > > >> > here's what i'm trying to do. i'd like to write an application against > >> > the > >> > exchange server that will trap an incoming mail event for a particular > >> > mailbox. Once that happens, i'd like to manipulate that new message and > >> > check > >> > for an attachment, if it has an attachment read it or save it and > >> > that's > >> > it. > >> > > >> > Is this possible, if so, please let me know. > >> > > >> > thanks, > >> > ari > >> > >> > >> > > > i apologize if you just said the answer and i completely missed it i will
look over the sdk, i'm very new to exchange and was looking for a quickstart. thanks for that great reply earlier i just had to read it a couple of times to get the answer. thanks again this helped. Show quote "ari" wrote: > so which event sink method would i use to trap a new mail event? and where in > the sdk would i look to understand how to manipulate that new email (like > reading it, saving its attachments for instance)? > > thanks, > ari > > "Henning Krause [MVP - Exchange]" wrote: > > > Hello, > > > > the OnSyncSave event sink is triggered whenever a mail is saved or changed > > in a folder. This happens synchronously, so you can abort the process if > > needed. OnSave is triggered, after an item has been created or updated in a > > folder. You can either write this event sink using vbscript, or, if > > performance is crucial, as COM+ application using .NET, C++ or Visual Basic > > 6. The event sink is registered directly on the Exchange server and uses ADO > > with the ExOleDB Provider to access the data. > > > > Subscribe on the other hand, uses WebDAV to access the server and works > > accross the network. Your code is notified by an UDP packet. So, your code > > does not have to run on the Exchange Server. A backdraw of this approach is > > that you must keep the subscription alive by refreshing it periodically. And > > you do not get the URL of the created or modified item. Instead, you are > > only notifed that something has happened on the folder. You must then search > > for new items manually. > > > > Greetings, > > Henning Krause > > MVP - Exchange > > http://www.infinitec.de > > > > > > "ari" <a**@discussions.microsoft.com> wrote in message > > news:5097CD4A-B4CC-497E-9223-032C91C65308@microsoft.com... > > > what is the difference between the 2 technologies? Between the > > > notification > > > sample and the sinks? From what i've read about the sinks i haven't seen a > > > way to capture an incoming mail event. > > > > > > all i see about sinks are onSave, onDelete, onSyncSave, when do these ever > > > happen in exchange anyway. > > > > > > ari. > > > > > > "Henning Krause [MVP - Exchange]" wrote: > > > > > >> Hello, > > >> > > >> another approach to what Micheal suggested is the use of an EventSink. > > >> See > > >> http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_using_store_events.asp > > >> for more information on this. > > >> > > >> Greetings, > > >> Henning Krause > > >> MVP - Exchange > > >> http://www.infinitec.de > > >> > > >> > > >> "ari" <a**@discussions.microsoft.com> wrote in message > > >> news:0C28F4CB-9ED0-4E6C-81DB-9F0290F7F49B@microsoft.com... > > >> > hey all, > > >> > > > >> > i've installed the exchange sdk and tried a couple of the samples. > > >> > exchange > > >> > store sinks and the notification sample app. i think what i need is the > > >> > notification sample app but i'm not sure. > > >> > > > >> > here's what i'm trying to do. i'd like to write an application against > > >> > the > > >> > exchange server that will trap an incoming mail event for a particular > > >> > mailbox. Once that happens, i'd like to manipulate that new message and > > >> > check > > >> > for an attachment, if it has an attachment read it or save it and > > >> > that's > > >> > it. > > >> > > > >> > Is this possible, if so, please let me know. > > >> > > > >> > thanks, > > >> > ari > > >> > > >> > > >> > > > > > > Hello,
you can use the onsave event for what you are trying to do. See here (http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_implementing_an_onsave_event_sink.asp) for async event sinks or here (http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_esdk_implementing_managed_onsave_event_sinks.asp) if you are working with managed code. Here (http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_managing_event_registrations.asp) is an overview on registrating event sinks. Once you have an ADO Record object (see first link on how to get that) you can use CdoEx to manipulate the message object. See here (http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_cdo_imessage_interface.asp) on the reference for the IMessage object. Greetings, Henning Krause MVP - Exchange http://www.infinitec.de Show quote "ari" <a**@discussions.microsoft.com> wrote in message news:6219AEEC-4B30-4779-86EE-ABE7F79D5B14@microsoft.com... > so which event sink method would i use to trap a new mail event? and where > in > the sdk would i look to understand how to manipulate that new email (like > reading it, saving its attachments for instance)? > > thanks, > ari > > "Henning Krause [MVP - Exchange]" wrote: > >> Hello, >> >> the OnSyncSave event sink is triggered whenever a mail is saved or >> changed >> in a folder. This happens synchronously, so you can abort the process if >> needed. OnSave is triggered, after an item has been created or updated in >> a >> folder. You can either write this event sink using vbscript, or, if >> performance is crucial, as COM+ application using .NET, C++ or Visual >> Basic >> 6. The event sink is registered directly on the Exchange server and uses >> ADO >> with the ExOleDB Provider to access the data. >> >> Subscribe on the other hand, uses WebDAV to access the server and works >> accross the network. Your code is notified by an UDP packet. So, your >> code >> does not have to run on the Exchange Server. A backdraw of this approach >> is >> that you must keep the subscription alive by refreshing it periodically. >> And >> you do not get the URL of the created or modified item. Instead, you are >> only notifed that something has happened on the folder. You must then >> search >> for new items manually. >> >> Greetings, >> Henning Krause >> MVP - Exchange >> http://www.infinitec.de >> >> >> "ari" <a**@discussions.microsoft.com> wrote in message >> news:5097CD4A-B4CC-497E-9223-032C91C65308@microsoft.com... >> > what is the difference between the 2 technologies? Between the >> > notification >> > sample and the sinks? From what i've read about the sinks i haven't >> > seen a >> > way to capture an incoming mail event. >> > >> > all i see about sinks are onSave, onDelete, onSyncSave, when do these >> > ever >> > happen in exchange anyway. >> > >> > ari. >> > >> > "Henning Krause [MVP - Exchange]" wrote: >> > >> >> Hello, >> >> >> >> another approach to what Micheal suggested is the use of an EventSink. >> >> See >> >> http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_using_store_events.asp >> >> for more information on this. >> >> >> >> Greetings, >> >> Henning Krause >> >> MVP - Exchange >> >> http://www.infinitec.de >> >> >> >> >> >> "ari" <a**@discussions.microsoft.com> wrote in message >> >> news:0C28F4CB-9ED0-4E6C-81DB-9F0290F7F49B@microsoft.com... >> >> > hey all, >> >> > >> >> > i've installed the exchange sdk and tried a couple of the samples. >> >> > exchange >> >> > store sinks and the notification sample app. i think what i need is >> >> > the >> >> > notification sample app but i'm not sure. >> >> > >> >> > here's what i'm trying to do. i'd like to write an application >> >> > against >> >> > the >> >> > exchange server that will trap an incoming mail event for a >> >> > particular >> >> > mailbox. Once that happens, i'd like to manipulate that new message >> >> > and >> >> > check >> >> > for an attachment, if it has an attachment read it or save it and >> >> > that's >> >> > it. >> >> > >> >> > Is this possible, if so, please let me know. >> >> > >> >> > thanks, >> >> > ari >> >> >> >> >> >> >> >> >> thanks so much for your help
Show quote "Henning Krause [MVP - Exchange]" wrote: > Hello, > > you can use the onsave event for what you are trying to do. > > See here > (http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_implementing_an_onsave_event_sink.asp) > for async event sinks or here > (http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_esdk_implementing_managed_onsave_event_sinks.asp) > if you are working with managed code. > > Here > (http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_managing_event_registrations.asp) > is an overview on registrating event sinks. > > Once you have an ADO Record object (see first link on how to get that) you > can use CdoEx to manipulate the message object. See here > (http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_cdo_imessage_interface.asp) > on the reference for the IMessage object. > > Greetings, > Henning Krause > MVP - Exchange > http://www.infinitec.de > > > "ari" <a**@discussions.microsoft.com> wrote in message > news:6219AEEC-4B30-4779-86EE-ABE7F79D5B14@microsoft.com... > > so which event sink method would i use to trap a new mail event? and where > > in > > the sdk would i look to understand how to manipulate that new email (like > > reading it, saving its attachments for instance)? > > > > thanks, > > ari > > > > "Henning Krause [MVP - Exchange]" wrote: > > > >> Hello, > >> > >> the OnSyncSave event sink is triggered whenever a mail is saved or > >> changed > >> in a folder. This happens synchronously, so you can abort the process if > >> needed. OnSave is triggered, after an item has been created or updated in > >> a > >> folder. You can either write this event sink using vbscript, or, if > >> performance is crucial, as COM+ application using .NET, C++ or Visual > >> Basic > >> 6. The event sink is registered directly on the Exchange server and uses > >> ADO > >> with the ExOleDB Provider to access the data. > >> > >> Subscribe on the other hand, uses WebDAV to access the server and works > >> accross the network. Your code is notified by an UDP packet. So, your > >> code > >> does not have to run on the Exchange Server. A backdraw of this approach > >> is > >> that you must keep the subscription alive by refreshing it periodically. > >> And > >> you do not get the URL of the created or modified item. Instead, you are > >> only notifed that something has happened on the folder. You must then > >> search > >> for new items manually. > >> > >> Greetings, > >> Henning Krause > >> MVP - Exchange > >> http://www.infinitec.de > >> > >> > >> "ari" <a**@discussions.microsoft.com> wrote in message > >> news:5097CD4A-B4CC-497E-9223-032C91C65308@microsoft.com... > >> > what is the difference between the 2 technologies? Between the > >> > notification > >> > sample and the sinks? From what i've read about the sinks i haven't > >> > seen a > >> > way to capture an incoming mail event. > >> > > >> > all i see about sinks are onSave, onDelete, onSyncSave, when do these > >> > ever > >> > happen in exchange anyway. > >> > > >> > ari. > >> > > >> > "Henning Krause [MVP - Exchange]" wrote: > >> > > >> >> Hello, > >> >> > >> >> another approach to what Micheal suggested is the use of an EventSink. > >> >> See > >> >> http://msdn.microsoft.com/library/en-us/e2k3/e2k3/_exch2k_using_store_events.asp > >> >> for more information on this. > >> >> > >> >> Greetings, > >> >> Henning Krause > >> >> MVP - Exchange > >> >> http://www.infinitec.de > >> >> > >> >> > >> >> "ari" <a**@discussions.microsoft.com> wrote in message > >> >> news:0C28F4CB-9ED0-4E6C-81DB-9F0290F7F49B@microsoft.com... > >> >> > hey all, > >> >> > > >> >> > i've installed the exchange sdk and tried a couple of the samples. > >> >> > exchange > >> >> > store sinks and the notification sample app. i think what i need is > >> >> > the > >> >> > notification sample app but i'm not sure. > >> >> > > >> >> > here's what i'm trying to do. i'd like to write an application > >> >> > against > >> >> > the > >> >> > exchange server that will trap an incoming mail event for a > >> >> > particular > >> >> > mailbox. Once that happens, i'd like to manipulate that new message > >> >> > and > >> >> > check > >> >> > for an attachment, if it has an attachment read it or save it and > >> >> > that's > >> >> > it. > >> >> > > >> >> > Is this possible, if so, please let me know. > >> >> > > >> >> > thanks, > >> >> > ari > >> >> > >> >> > >> >> > >> > >> > >> > > > |
|||||||||||||||||||||||