exchange-server

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

假如想象 提交于 2020-01-11 10:42:09
问题 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:

Save mail to msg file using EWS API

半腔热情 提交于 2020-01-08 17:35:10
问题 I'm using Exchange Web Services Managed API 1.1 to connect to Exchange server 2010 and then find out new emails received. Now I want to save a copy of the .msg file to a folder on the disk. I do not want to use any paid third party to integrate. Any help will be appreciated. 回答1: If you are happy to save into the .eml format instead, it can be done very easily just using EWS and no third party libraries. The .eml file will contain all the same information and can be opened by Outlook in the

Read emails from Exchange server

折月煮酒 提交于 2020-01-07 05:38:41
问题 How can i read all inbound and outbound email from our exchange server using .vet (VB/C#)? Basically we have a Quote management system and we send Quote out via email. What we really want to achieve is Read all outgoing and incoming emails and copy the email to specific Quote folder in server. I want to server get emails which have a specific Subject line something like "Quote #12345". Thanks in advance. 回答1: You could take a few approaches Use a Transport Rule to copy any email that matches

How to get rid of HTML-tags in a message?

穿精又带淫゛_ 提交于 2020-01-07 04:09:48
问题 For the last time I've been using EWS MAPI to connect to Exchange Server. After this is done I access my mails and firstly display their body (which contains a LOT HTML-tags) in a gridview. After you select a record of that gridview the body is shown in a freetextbox. My problem is that I want to get rid of the HTML in the body. And configure the freetextbox so that it still displays the the text in his true format. Thanks in advance. 回答1: You can use regular expressions. have a look at: here

Exchange Online push notification subscription unable to perpetuate

情到浓时终转凉″ 提交于 2020-01-06 19:35:58
问题 I have inherited from a colleague who left a system module that integrates with Exchange Online in Office 365. Essentially what this module does is interact with with the remote Exchange service via EWS Managed API; subscribe for push notifications on changes in a user's calendar. Change events do get posted to our web service and that is fine. And based on the frequency parameter we defined, the status checks messages also get posted on expected intervals, as per description about the

Exchange Online push notification subscription unable to perpetuate

荒凉一梦 提交于 2020-01-06 19:34:24
问题 I have inherited from a colleague who left a system module that integrates with Exchange Online in Office 365. Essentially what this module does is interact with with the remote Exchange service via EWS Managed API; subscribe for push notifications on changes in a user's calendar. Change events do get posted to our web service and that is fine. And based on the frequency parameter we defined, the status checks messages also get posted on expected intervals, as per description about the

Automatically Allow Programmatic Access to Outlook

扶醉桌前 提交于 2020-01-06 18:16:30
问题 There is a Public Shared Folder that exists on a corporate exchange server. I am trying to connect to the outlook folder, and monitor it for incoming mail. However, When I connect, my local instance of Outlook prompts me for permission. Is there anyway to circumvent this prompt? I tried adding relevant MAPI registry values, but it is still prompting. Any thoughts? Registry I am setting (python) opened_key = winreg.CreateKey(winreg.HKEY_CURRENT_USER, r'SOFTWARE\Microsoft\Office\14.0\Outlook

Automatically Allow Programmatic Access to Outlook

流过昼夜 提交于 2020-01-06 18:16:03
问题 There is a Public Shared Folder that exists on a corporate exchange server. I am trying to connect to the outlook folder, and monitor it for incoming mail. However, When I connect, my local instance of Outlook prompts me for permission. Is there anyway to circumvent this prompt? I tried adding relevant MAPI registry values, but it is still prompting. Any thoughts? Registry I am setting (python) opened_key = winreg.CreateKey(winreg.HKEY_CURRENT_USER, r'SOFTWARE\Microsoft\Office\14.0\Outlook

How to connect to Exchange?

邮差的信 提交于 2020-01-06 17:59:27
问题 The simplest thing I want in my company - is to retrieve mails. I tried over Imap - no success, (ImapX not connecting at all and no error is shown) and I came to EWS. But there is also some voo-doo magic involved. And here is the code with some errors: ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2007_SP1); service.TraceEnabled = true; service.TraceFlags = TraceFlags.All; service.UseDefaultCredentials = true; service.Url = new Uri("https://some.com/EWS/Exchange.asmx")

SSRS Subscriptions Duplicating email

扶醉桌前 提交于 2020-01-06 14:15:51
问题 Had an interesting error today and couldn't find anything online about it so wondered if any of you guys had seen this behavior before. We had an out of memory error and the CPU usage was spiking this morning on our reports server, a clean reboot seemed to rectify the issue, however since then all the email subscriptions have been sending multiple times. What do i mean by this, the subscription as far as SSRS is concerned ran once at its normal time (10am), this has been proven by