exchange-server

EWS Managed API 1.1 - Pull Subscriptions Memory Leak

我与影子孤独终老i 提交于 2020-02-04 09:01:18
问题 Has anyone else discovered a memory leak issue with Pull Subscriptions ( ExchangeService.SubscribeToPullNotifications() ) in Exchange Managed Web Services API? When calling PullSubscription.GetEvents() the memory utilization climbs 4K with nearly every polling call. The only way I've been able to keep the memory utilization down is by forcing garbage collection (via GC.Collect() ) after every call - an unnecessary path. I am surprised to see the API hasn't changed for almost a year. 回答1: This

Search-Mailbox SearchQuery - trouble with AND and OR

落爺英雄遲暮 提交于 2020-02-02 13:35:56
问题 I'm having a fair bit of trouble trying to search for some messages using Search-Mailbox . Search-Mailbox -Identity $User ` -SearchQuery "Attachment:p* AND From:$email AND To:reception@contoso.com AND Received<`"04/02/2018`" AND Subject:(GfC* OR G4C* OR c4g* OR GfC OR G4C OR c4g)" ` -LogOnly -TargetMailbox "myusername" -TargetFolder "SearchAndDeleteLog" -LogLevel Full However I'm getting matches to messages which don't match the SearchQuery criteria, in particular the Subject:(...). For

Search-Mailbox SearchQuery - trouble with AND and OR

依然范特西╮ 提交于 2020-02-02 13:35:31
问题 I'm having a fair bit of trouble trying to search for some messages using Search-Mailbox . Search-Mailbox -Identity $User ` -SearchQuery "Attachment:p* AND From:$email AND To:reception@contoso.com AND Received<`"04/02/2018`" AND Subject:(GfC* OR G4C* OR c4g* OR GfC OR G4C OR c4g)" ` -LogOnly -TargetMailbox "myusername" -TargetFolder "SearchAndDeleteLog" -LogLevel Full However I'm getting matches to messages which don't match the SearchQuery criteria, in particular the Subject:(...). For

Office 365 EWS does not return X-BackendOverrideCookie

假如想象 提交于 2020-01-23 10:51:27
问题 Office 365 does not return the X-BackendOverrideCookie in response headers. I set the X-AnchorMailbox and X-PreferServerAffinity in the request headers properly. This does not trigger X-BackendOverrideCookie to be returned, as it says in MSDN. Why is this happening? Meanwhile, I tried the same thing with an on-premise Exchange 2016. Here I don't even set the X-AnchorMailbox and X-PreferServerAffinity and I get back the X-BackendOverrideCookie in each response. This is not good either, since I

Office 365 EWS does not return X-BackendOverrideCookie

左心房为你撑大大i 提交于 2020-01-23 10:51:10
问题 Office 365 does not return the X-BackendOverrideCookie in response headers. I set the X-AnchorMailbox and X-PreferServerAffinity in the request headers properly. This does not trigger X-BackendOverrideCookie to be returned, as it says in MSDN. Why is this happening? Meanwhile, I tried the same thing with an on-premise Exchange 2016. Here I don't even set the X-AnchorMailbox and X-PreferServerAffinity and I get back the X-BackendOverrideCookie in each response. This is not good either, since I

getting access to outlook exchange global address book

南楼画角 提交于 2020-01-23 03:05:17
问题 i am building a csharp application and i would like a dropdown list of all users in my outlook global address book (the same one when i click on To: from outlook gui. is this possible to get this progrmaticall? what are the security requirements here? 回答1: Security ramifications, in addition to the Outlook dependency left me unable to use this approach, in the past. As a result, I ended up building this in the form of an LDAP query. Another plus is that, (in response to your other question)

Error while sending mails using EWSJavaAPI

梦想与她 提交于 2020-01-15 12:48:09
问题 I am trying to send mails from my java web application by using EWS Java api. But ia m getting an error when sending mails. We have Exchange 2013 server installed. Here is my code ExchangeService service = new ExchangeService(); ExchangeCredentials credentials = new WebCredentials("username","password"); service.setCredentials(credentials); try { service.setUrl(new URI("host/ews/Exchange.asmx")); service.setTraceEnabled(true); EmailMessage msg = new EmailMessage(service); msg.setSubject(

How do I send an email to an Exchange Distribution list using c#

旧时模样 提交于 2020-01-14 07:49:10
问题 I need to send an email to an Exchange distribution list called "DL-IT" using c#. Does anyone know how to achieve this? 回答1: The simplest way would be to find the actual email address of the DL, and use that in your "To:" field. Exchange distribution lists actually have their own email addresses, so this should work fine. 回答2: Exchange server runs SMTP so one can use the SmtpClient to send an email. One can lookup the SMTP address of the distribution list (manually) and use that as the "to"

Exchange Web Services API : get mail attachments

房东的猫 提交于 2020-01-11 20:07:21
问题 I am using the EWS API 1.2 to access mailboxes on our Exchange Server. This just works fine but there is one thing I cannot achieve : get mail attachments. Im wrote the following lines : class Program { public static void Main(string[] args) { try { ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2); service.Credentials = new WebCredentials("login","password"); service.AutodiscoverUrl("mail@domaine.fr"); ItemView view = new ItemView(10); FindItemsResults<Item>

Is there a way to access the CXF message exchange from a JAX-RS REST Resource within CXF?

夙愿已清 提交于 2020-01-11 10:42:52
问题 Currently we have a a RESTful API using CXF 2.4.2. In one of my resource methods, I would like to process some query parameters and store the result in the CXF message exchange for an output interceptor to use later on. I've tried injecting the WebServiceContext as mentioned here, but it does not seem to work, probably because it is part of the JAX-WS specification, and we are using JAX-RS. Any help would be greatly appreciated! 回答1: The easiest, if using CXF, is to just do: