Hello, I have some questions regarding the use of web services in Exchange 2007. Is it possible to subscribe to an Exchange 2007 server an receive all messages for all(certain) users. I found articles that a client can access a his mails by posting his credentials and also articles that describe how to make operation on behalf on somebody. But my question is.: can a user (he can have all rights needed from AD) subscribe and receive all mails from all users? Or should I use some lover level api like event sink and so on? The client software I would like to develop should receive a copy of all messages that come and go to/from the company to inspect them and then make depending on the content further operations.
What you want to do is covered by Exchange Transport Agents see http://msdn2.microsoft.com/en-us/library/aa579185.aspx . Transport Agents allow you to process messages while they are in the Transport Pipeline which with Exchange 2007 covers everything eg even messages sent locally on a server to another user on the same server (or even the same user) will traverse at least one Hub server. Cheers Glen wrote in message news:ef93e805-e9c1-4148-9ad4-c8c9695c6c01@e6g2000prf.googlegroups.com... > Hello, > > I have some questions regarding the use of web services in Exchange > 2007. > > Is it possible to subscribe to an Exchange 2007 server an receive all > messages for all(certain) users. > I found articles that a client can access a his mails by posting his > credentials and also articles that describe how to make operation on > behalf on somebody. But my question is.: can a user (he can have all > rights needed from AD) subscribe and receive all mails from all users? > Or should I use some lover level api like event sink and so on? > > The client software I would like to develop should receive a copy of > all messages that come and go to/from the company to inspect them and > then make depending on the content further operations. > > > > >
Ok Transport Agents looks very nice, strange that i oversaw them http://www.msxfaq.de/code/wege.htm based on the Transport Agents I can create my own web service thany you and best regards !
hmm... If i think about it more closely then what can I do with (Subscription for PUSH/PULL) ? http://msdn2.microsoft.com/en-us/library/aa566188(EXCHG.80).aspx Is it intended just for a single user application? what is if I log in as admin and subscribe to all mailboxes to push me on new emails? Transport Agents are beguiling for building on top of them own Web Services but can't it be done with already available Web Services?
I would forget about webservices these are more if you want to look,create and manage mailbox content it sounds like what you want to do is process Email as it comes in and goes out for this you should look at using a Transport Agents these are quite simple to write and are designed to be a scaleable way to doing something like this. Transport Agents are custom written class libraries that hook into Transport events on a Hub or Edge Server they have no relation to Exchange Web Services which is use to provide access to Mailbox Content via a CAS Server. I would recommend having a read of http://technet.microsoft.com/en-us/library/bb125012(EXCHG.80).aspx . Doing something simular with a EWS push or pull notifications would be a lot more complex and you may find that in some situations wont work eg all notifications are asynchronous meaning that you only get notified about an item after it has arrived in a Mailbox. Cheers Glen wrote in message news:3ca88d1d-8e40-4946-aed1-09817d980d4d@q21g2000hsa.googlegroups.com... > hmm... > > If i think about it more closely then what can I do with > (Subscription for PUSH/PULL) ? > http://msdn2.microsoft.com/en-us/library/aa566188(EXCHG.80).aspx > Is it intended just for a single user application? what is if I log in > as admin and subscribe to all mailboxes to push me on new emails? > > Transport Agents are beguiling for building on top of them own Web > Services but can't it be done with already available Web Services? > >