MS Outlook MailItem as MIME message - vba

I have been looking for some time for a way to get an Outlook MailItem as a MIME-Message, but without much luck so far.
What I found is this here: http://www.office-outlook.com/outlook-forum/index.php/m/600993/, which would mean that I would either have to use a third party library or get into Extended MAPI.
Is there no other way to get a complete MailItem as MIME in Outlook 2007 with VBA?

Yes, it is either Extended MAPI (IConverterSession) or Redemption (RDOMail/SafeMailItem.SaveAs).
You can of course explicitly built the MIME message in your code one property at a time...

Related

C# Add-In (VSTO .NET): Add domain name to outlook junk-email list

With the Outlook UI you can add an email address to your junk-email list, you can add a domain name as trusted domain, but you can't add a domain name to your junk-email list. You must manually edit the email address in your junk-email list to achieve that, so I wrote an Add-In to do this for me, but cant find the method to do that. Apparently the Outlook object model doesn't provide anything for that.
Is there a code workaround for this fatal limitation?
That is correct. Outlook Object Model does not provide any means to access or manipulate Junk Email settings.
You can try to use Extended MAPI (C++ or Delphi) to build the MAPI server side rule that lists all the blocked senders, but it is definitely not for the faint-hearted.
If using Redemption (I am its author) is an option, it exposes RDOJunkEmailOptions object (returned from RDOSession.JunkEmailOptions, RDOAccount.JunkEmailOptions, RDOExchangeMailboxStore.JunkEmailOptions), which allow to add blocked senders using RDOJunkEmailOptions.BlockedSenders.Add.

VBA Outlook - Get "last modified by" using MAPI

I am using MAPI to get details of email into my database. Now it seems that outlook captures Last Modified time. But I am not able to find any helpful articles on how to capture the "last modified by" in outlook.
I need to know how I can achieve this using VBA Outlook with MAPI or if there is any other way of getting this done.
Extended MAPI can only be used from C++ or Delphi. There is no way you can do that from VBA.
Why do you need to use MAPI? Have you looked into using the Outlook Object Model and the MailItem.LastModificationTime property in particular?

vb.net addin outlook positem

I am working with vb.net addin outlook 2010. I have an exchange server 2003. We have a public folder that is used to store client emails. Our system send emails to clients and when they reply, it is saved in a public as a postItem not mailItem. I do not know how that happen.
I need to convert that postItem into mailItem because I want to start a workflow with that message.
I am able to get most of the field from PostItem, but I am not able to get CC and TO. I do not know what property from PostItem keep that information.
Are you actually copying data? HAve you tried to just reset the MessageClass property from IPM.Post to IPM.Note?
The Outlook PostItem does not have CC or BCC properties.
I just look at the MSDN reference and I don't see TO field either.
Here is the PostItem documentation:
http://msdn.microsoft.com/en-us/library/office/ff865387.aspx
Without seeing your code, I have no idea why your received email saves as PostItem.
Can you post the routine that saves to the public Exchange folder?

livelink mapi outlook objId

I am searching for a way to get the livelink objId from a MAPIFolder object (Outlook VBA).
I can get the path but its useless when the MAPI comes from favorites.
I look at this Is there a list of IDs for the Outlook MAPI namespace? but that's not really helping.
I searched in each variable of MAPIFolder, looked at xml values, and I don't know what to do, where else to look.
(Are there any livelink/Outlook developers?)
I don't have any direct experience with automating LiveLink's Outlook Integration, but if their solution is MAPI Message Store Based (like our competing DMS integration product), your best bet would be to install OutlookSpy and look for a named property containing the livelink ID.
There doesn't have to be one, but it is the most straightforward approach to support third party automation/integration.

Getting messageID from email in Outlook VBA 2003

Is there a easy way to get the current shown (preferably selected) message-ID via VBA ?
without having to buy Redemption or some other package..
I need to message ID so I can make a link to a web-application that reads the mail and does some other stuff with it
Can't seem to use MAPI or PropertyAccessor in outlook 2003..
Do you mean the unique ID for the message? Try the EntryID Property:
ActiveExplorer.Selection.Item(1).EntryID
FYI PropertyAccessor was added in Outlook 2007, you wouldn't see it in 2003.