Using Exchange managed api (EWS) to monitor mailbox attachments?

Lets say these mails are coming into your Inbox on X mailbox. You create a subscription to that folder like so.

Lets say these mails are coming into your Inbox on X mailbox. You create a subscription to that folder like so PullSubscription subscription = SomeExchangeService. SubscribeToPullNotifications( new FolderId{ WellKnownFolderName.

Inbox },1440,"",EventType. Created); Subscriptions. Add(subscription); Now you have to set a timer and check the pull notifs static void Exchanger_Elapsed(object sender, ElapsedEventArgs e) { foreach (var pullSubscription in Subscriptions) { foreach (var itemEvent in pullSubscription.GetEvents().

ItemEvents) { Item item = Item. Bind(SomeExchangeService, itemEvent. ItemId); if (item.

Subject == someString) { // item. Attachments do something // As in read it as a stream and write it // to a file according to mime type and file extension } } } } I hope this helps... UPDATE Due to email request public static List Subscriptions = new List();> Subscriptions = new List().

Consider creating a search folder to screen the messages. You will only need to look for, and process, messages in the search folder.

This would lead to polling the server at an interval given that you can not subscribe to searchfolders in Exchange 2007 sp1 EWS managed api. – Sevki May 3 at 6:34.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions