mapi

get Manager from Outlook Contacts using VBA

谁都会走 提交于 2019-12-08 02:17:02
问题 I have the below code that retrieves the Global Address List from Outlook then creates an array with the name and the department. I'd like to get the users manager - but I can't find it in the list of properties and oUser.GetExchangeUserManager doesn't work Dim appOL As Outlook.Application ' Object Dim oGAL As Outlook.AddressEntries ' .NameSpace Object Dim oContact As Outlook.AddressEntry ' Object Dim oUser As ExchangeUser ' Object Dim arrUsers(1 To 65000, 1 To 4) As String Dim UserIndex As

How to process/extract .pst using hadoop Map reduce

廉价感情. 提交于 2019-12-06 06:40:33
I am using MAPI tools (Its microsoft lib and in .NET) and then apache TIKA libraries to process and extract the pst from exchange server, which is not scalable. How can I process/extracts pst using MR way ... Is there any tool, library available in java which I can use in my MR jobs. Any help would be great-full . Jpst Lib internally uses: PstFile pstFile = new PstFile(java.io.File) And the problem is for Hadoop API 's we don't have anything close to java.io.File . Following option is always there but not efficient: File tempFile = File.createTempFile("myfile", ".tmp"); fs.moveToLocalFile(new

How to drop files onto .MAPIMail

梦想与她 提交于 2019-12-06 05:35:45
问题 Given some files (or shell file objects) how do i invoke the .MAPIMail registered shell extension handler with them? The Question i have some files on the computer: C:\Users\ian\AppData\Local\Temp\Contoso_Invoice_141174.pdf C:\Users\ian\AppData\Local\Temp\Contoso_Invoice_141173.pdf C:\Users\ian\AppData\Local\Temp\Contoso_Invoice_141171.pdf That i want to do the programmatic equivalent of dropping them on the .MAPIMail registered handler: The Sent to folder's Mail recipient option is actually

32-bit MAPI app with 64-bit Outlook

做~自己de王妃 提交于 2019-12-05 17:51:53
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 There are no exceptions: a 32 bit process cannot load a 64 bit dll. When you have the 64 bit version of Outlook,

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

ε祈祈猫儿з 提交于 2019-12-05 14:24:05
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. } } } } But unfortunately I can't find a picture accessor. You can use the attachments property of the

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

丶灬走出姿态 提交于 2019-12-05 10:48:25
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 be appreciated. Thanks. In some very rare cases there exists documentation from MS as you've seen.

C# How to get the send of behalf email address in outlook add-in

邮差的信 提交于 2019-12-05 06:00:49
I'm trying to get the sender email address from email that is send using another email address. The sender as shows in outlook is ditribution-lists@domain.com on behalf of User Name [user.name@domain.com]. The MAPI object has a method SentOnBehalfOfName that returns "User Name" but not the email address. Does anyone know how to receive user.name@domain.com field? using System; using System.Runtime.InteropServices; using System.Diagnostics; using System.Reflection; namespace Helpers { internal class EmailHelper { public static string GetSenderEmailAddress(Microsoft.Office.Interop.Outlook

System.Runtime.InteropServices.COMException (0x800706BE) when getting contact.LastName

眉间皱痕 提交于 2019-12-04 13:57:47
问题 Some of our users are getting this exception sometimes (not for every contact): System.Runtime.InteropServices.COMException (0x800706BE): The remote procedure call failed. (Exception from HRESULT: 0x800706BE) at Microsoft.Office.Interop.Outlook._ContactItem.get_LastName() This happens when we're trying to get the last name of a contact (of the ContactItem type). Does anybody know what the problem is? Any help would be appreciated. Thanks! 回答1: It is a Windows error, facility code 7. The last

Convert Outlook REST API item id to MAPI EntryID

自闭症网瘾萝莉.ら 提交于 2019-12-04 12:53:47
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 an official documentation how to convert between the id formats? Or an API to call? Would prefer a

Outlook Redemption - using RedemptionLoader without regsvr32 the DLL

醉酒当歌 提交于 2019-12-04 06:14:25
问题 I want to use the mail functions without registering the COM dll (regsvr32). I followed the informations from: http://www.dimastr.com/redemption/security.htm#redemptionloader so i initialize the dll with private Redemption.SafeMailItem safeMail = Redemption.RedemptionLoader.new_SafeMailItem(); which shows the Eval-Popup. All good. But when i assign the outlook mail item to the object safeMail.Item = mail; // of type Microsoft.Office.Interop.Outlook.MailItem then this exception appears: Unable