mapi

How can I get the outlook contact's avatar image?

倾然丶 夕夏残阳落幕 提交于 2019-12-22 09:13:30
问题 I am trying to get the contact's avatar image. using Microsoft.Office.Interop.Outlook; public sealed class OutlookAvatarFetcher { private static void FetchAvatars() { var outlook = new Application(); var folder = outlook.GetNamespace("MAPI").GetDefaultFolder(OlDefaultFolders.olFolderContacts); var items = folder.Items; for (var i = 0; i < items.Count; ++i) { var contact = items[i + 1] as ContactItem; if (contact == null) continue; if (contact.HasPicture) { // TODO store the picture somehow. }

32-bit MAPI app with 64-bit Outlook

∥☆過路亽.° 提交于 2019-12-22 09:09:12
问题 The 32-bit version of our app is unable to send email using MAPISendMail with 64-bit Outlook installed. It returns an error 0x80004005, about which I can find little information beyond the fact that it seems to be a MAPI initialization error. According to this MSDN document, MAPISendMail is the one exception to the rule that 32-bit apps can't use 64-bit MAPI. And yet it doesn't work (at least with XP and Vista--we haven't tested Win7/8 yet). Can anyone shed any light on this? TIA 回答1: There

Is there a list of IDs for the Outlook MAPI namespace?

南楼画角 提交于 2019-12-22 06:37:17
问题 I'm working on an Outlook add-in and I'm looking for a complete list that relates that MAPI properties to there names that is a little less vague than this. There is plenty of documentation on how to access those properties, but I'm not having much luck finding anything that tells me what any of the properties are. P.S. I've seen this post on the subject but I would really like more info on the subject. Alternatively, if there is information on extending the Out of Office Assistant, the would

Convert Outlook REST API item id to MAPI EntryID

大兔子大兔子 提交于 2019-12-21 20:15:26
问题 is there an officially supported way to convert item ids from the Outlook REST API into an MAPI EntryID? I am talking about the "Id" field returned for items in the json response of an http GET on a mailbox endpoint like so: https://outlook.office365.com/api/v2.0/me/messages The Id field contains a base64 value. When I convert it to hex and compare it to the PR_ENTRY_ID value of the same item, e.g. with MFCMAPI , I can find the EntryID is contained in the hex version of the Id field. Is there

Launching email application (MAPI) from C# (with attachment)

二次信任 提交于 2019-12-18 13:30:00
问题 In the past I have used MAPISendMail to launch Outlook (or whatever the desired MAPI email application was) from a C++ application with a file attachment. (Similar to say Microsoft Word's Send Email functionality). I need to do the equivalent from a C# application and to have it work when running on XP, Vista, Server 2008 (and Windows 7 I suppose). MAPISendMail is a no go under Vista/2008 as it always returns MAPI_ E_FAILURE when Outlook is running and MAPI is not supported in managed code.

Python read my outlook email mailbox and parse messages [duplicate]

半世苍凉 提交于 2019-12-18 10:57:08
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Reading e-mails from Outlook with Python through MAPI I am completely new to Python and have been given the task to write a program that connects to my Microsoft Outlook mailbox, goes through all the emails and if the subject has a certain word, then the details of the email time and subject will be saved in variables, as well as the email message body will be parsed and relevant information will be stored in

MAPI and managed code experiences? [closed]

不问归期 提交于 2019-12-18 05:45:24
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . Using MAPI functions from within managed code is officially unsupported. Apparently, MAPI uses its own memory management and it crashes and burns within managed code (see here and here) All I want to do is launch the default e-mail client with subject, body, AND one or more

Modifying Microsoft Outlook contacts from Python

我的未来我决定 提交于 2019-12-17 22:37:13
问题 I have written a few Python tools in the past to extract data from my Outlook contacts. Now, I am trying to modify my Outlook Contacts. I am finding that my changes are being noted by Outlook, but they aren't sticking. I seem to be updating some cache, but not the real record. The code is straightforward. import win32com.client import pywintypes o = win32com.client.Dispatch("Outlook.Application") ns = o.GetNamespace("MAPI") profile = ns.Folders.Item("My Profile Name") contacts = profile

MSG Clarification on PidTagInternetCodePage, PidTagMessageCodepage, PidTagStoreSupportMask

丶灬走出姿态 提交于 2019-12-13 03:49:11
问题 The official documentation for the MSG format states PidTagStoreSupportMask indicates whether string properties within the .msg file are Unicode-encoded or not. STORE_UNICODE_OK Set if the string properties are Unicode-encoded. PidTagMessageCodepage specifies the code page used to encode the non-Unicode string properties on this Message object PidTagInternetCodepage indicates the code page used for the PidTagBody property or the PidTagBodyHtml property Based on the above my understanding is

Get list of all rooms in outlook

亡梦爱人 提交于 2019-12-12 18:16:13
问题 I'm writing some application where I need to get an all available rooms within my organization. (the same list we get while we opening "Add Rooms" dialog in outlook) I assume that while we doing it through outlook he works against some exchange server, the question is is there a way to use outlook as a"proxy" between me to the exchange server? I have no knowledge with exchange, and a little knowledge with outlook's interop... Thanks in advance for any help. 回答1: I don't know if this will work