exchange-server

Sort-Object by greatest numerical value value from Import-CSV

别来无恙 提交于 2019-12-02 03:23:23
I want the greatest value (mailboxSize) at the top of the file. I have a cvs as inport. When I do the following sort cmd: Import-Csv import.csv| Sort-Object MailboxSize,DisplayName -Descending | Export-Csv SORT.csv I get the following result: "DisplayName","MailboxSize" "persone6","9941" "persone3","8484" "persone1","7008" "persone4","4322" "persone5","3106" "persone7","27536" "persone10","24253" "persone8","1961" "persone9","17076" "persone11","17012" "persone2","15351" "persone12","11795" "persone14","1156" "persone13","1008" But I want this as a result! "persone7","27536" "persone10","24253

Microsoft Exchange: How To Resolve A Distinguished Name

﹥>﹥吖頭↗ 提交于 2019-12-02 02:34:06
How can i resolve this: /O=CHEESE/OU=FIRST ADMINISTRATIVE GROUP/CN=RECIPIENTS/CN=LHALA1 to an email address? Do i have to use Exchange Web Services? Daro I'm assuming this is the legacyExchangeDN Attribute. Try something like this: string dn = "/O=CHEESE/OU=FIRST ADMINISTRATIVE GROUP/" + "CN=RECIPIENTS/CN=LHALA1"; string MailAddress=string.Empty; string user = string.Empty; using (DirectorySearcher ds = new DirectorySearcher()) { ds.Filter = string.Format("(&(ObjectClass=User)(legacyExchangeDN={0}))", dn); SearchResultCollection src = ds.FindAll(); if (src.Count > 1) { //Oops too many! } else

SOAP Message to EWS to create mail as regular mail, not draft

ぐ巨炮叔叔 提交于 2019-12-02 02:32:02
In EWS, you can create a draft like this: <tns:CreateItem MessageDisposition="SaveOnly"> <tns:Items> <t:Message> <t:ItemClass>IPM.Note</t:ItemClass> <t:Subject>subject</t:Subject> <t:Body BodyType="HTML">body</t:Body> <t:IsRead>false</t:IsRead> </t:Message> </tns:Items> </tns:CreateItem> What do I need to add to create a regular message instead of a draft, as the code above does (using SOAP messages, not the Managed API)? Setting the extended MessageFlags property did the trick! Has to be done at creation. <tns:CreateItem MessageDisposition="SaveOnly"> <tns:Items> <t:Message> <t:ItemClass>IPM

Sort-Object by greatest numerical value value from Import-CSV

房东的猫 提交于 2019-12-02 01:46:14
问题 I want the greatest value (mailboxSize) at the top of the file. I have a cvs as inport. When I do the following sort cmd: Import-Csv import.csv| Sort-Object MailboxSize,DisplayName -Descending | Export-Csv SORT.csv I get the following result: "DisplayName","MailboxSize" "persone6","9941" "persone3","8484" "persone1","7008" "persone4","4322" "persone5","3106" "persone7","27536" "persone10","24253" "persone8","1961" "persone9","17076" "persone11","17012" "persone2","15351" "persone12","11795"

Bind custom extended property for existing appointment using EWS managed API 2.0

送分小仙女□ 提交于 2019-12-02 00:48:48
I want to make unique appointment to put in database using custom extended properties. I find all appointments using FindAppointments(): var appointments = _service.FindAppointments(WellKnownFolderName.Calendar, calendarView); and than i go trough all appointments using foreach loop: foreach (var appointment in appointments) for all appointments which doesn't have extended property: if (appointment.ExtendedProperties.Count <= 0) i bind a custom extended property and setting its value with unique meeting id (meetingId) which i specialy generated to be uniqe int number: var myPropertySetId = new

Connect to Microsoft Exchange Server with Spring Integration Mail

随声附和 提交于 2019-12-02 00:42:23
I want to connect to Microsoft Exchange 2010 with IMAP using Spring Integration Mail. My question is how the connection string exactly look like. Let's say: domain=earth user=jdoe email=jon.doe@earth.com Folder=inbox As far as I know, MS Exchange only supports imaps for connection to. My Spring integration config looks like this: <util:properties id="javaMailProperties"> <prop key="mail.imaps.socketFactory.class">javax.net.ssl.SSLSocketFactory</prop> <prop key="mail.imaps.socketFactory.fallback">false</prop> <prop key="mail.store.protocol">imaps</prop> <prop key="mail.debug">true</prop> </util

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

…衆ロ難τιáo~ 提交于 2019-12-01 23:04:59
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! Daniel Kulp The easiest, if using CXF, is to just do: PhaseInterceptorChain.getCurrentMessage() That will work in JAXWS and JAXRS services. Injecting org.apache.cxf

EWS-managed: Fetch required and optional attendees of appointments

依然范特西╮ 提交于 2019-12-01 21:33:37
As far as I am now, I know how to fetch appointments from exchange server, BUT as soon as I want to see the required and optional attendees, these fields are empty ... I checked the appointment trice and there is an attendee, except me. Do I have to config Outlook differently or do I miss something? List<Appointment> listOfAppointments = new List<Appointment>(); CalendarFolder cfolder = CalendarFolder.Bind(MyService, WellKnownFolderName.Calendar); CalendarView cview = new CalendarView(from.ToUniversalTime(), to.ToUniversalTime()); cview.PropertySet = new PropertySet(ItemSchema.Subject); cview

Android How to add/configure Exchange setting programmatically?

无人久伴 提交于 2019-12-01 21:21:47
Is it me or I can't find any example of how to add/configure Microsoft Exchange programatically? It seems like AccountManager :: addAccount (String accountType, String authTokenType, String[] requiredFeatures, Bundle addAccountOptions, Activity activity, AccountManagerCallback<Bundle> callback, Handler handler) should do the work. However, I can't figure out how for Microsoft Exchange account. Could you point me to a simple working example code? Thank you. Seems like it can't be done by applications. you'll get the following exception: ERROR/AndroidRuntime(442): Caused by: java.lang

Searching Of Folders in Public Folders by giving its PATH Name

廉价感情. 提交于 2019-12-01 21:04:50
问题 Is it possible to search for all folders and sufolders in public folders by giving the path of the folders by using Exchange Web Service(EWS) Managed Api? 回答1: You can only search within folders, one level deep on EWS so for: PublicFoldersRoot\subjectA\sectionB\partC\ I would search for "subjectA" folder, then once I have that FolderId then I would then search for "sectionB" folder and so on until I find what I need. The method GetPublicFolderByPath takes the path "subjectA\sectonB\partC\"