ICONICO

Discussion Thread

Mailbox SDK

Message Thread


Posted in the Mailbox SDK Forum.




MSG email file format

Hi,

I've downloaded the Mailbox SDK and I've got the samples up and running - Great job on these by the way, I've already saved a lot of time. I had a question, do you have any plans for working with .MSG file formats? I have individual message files saved out from Outlook and I wanted to read them and maybe convert them.

Thanks - awesome product.
by Jason H on Jun 28 2008 11:52am Reply

MSG email file format

hi Jason, very glad that you like what we've done. We're actually planning a .MSG to .EML converter extention to the Mailbox SDK, which should be available next week. I was playing with the beta yesterday and the sample application can take in a .MSG file from Outlook and convert it to .EML. We've had a couple of other people ask about this and the demo will also support dragging and dropping.

I'll post when we're ready to release, shouldn't be long now.
by Nico Westerdale on Jun 28 2008 11:56am Reply

MSG email file format

You'll be happy to know that we've just released version 1.0.0.15 of the Mailbox SDK which now includes an EMLtoMSG and MSGtoEML API. We've also made a simple drag-drop conversion demo application written in Delphi which is part of the SDK that you are welcome to use as a starting point.
by Nico Westerdale on Jul 5 2008 1:25pm Reply

MSG email file format

I'm currently testing the EMLtoMSG api and I'm getting a "OMS_MAPINOTINITIALIZE" error back (using C#). Any idea whats going on?
by Jarle Nygård on Jul 8 2008 10:56am Reply

MSG email file format

Right, we have seen this error and it's to do with the EMAPI interface. When Outlook is fired up for the first time it can take some time to initialize. The easiest way to catch this is to either put in a delay in your code, or trap the first error and call it for a second time.

We did find documentation of this error here:
http://support.microsoft.com/kb/324841

Microsoft advises calling Sleep for 1 or 2 seconds and that should fix the problem.

---

You can also try changing the MCore.ini key "UseMAPIUninitialize True", which is another way around it as the mailbox SDK will then pause itself waiting for MAPI to initialize.
by Nico Westerdale on Jul 8 2008 11:04am Reply

MSG email file format

So, Mailbox API is still reliant on Outlook?

Anyways, a sleep in my code? Where in this code would you put it?
static void Main(string[] args)
{
MCore.LibWrap.EMLToMSG("Mail.eml", "Mail.msg");
}

I tried putting it before the call, but to no avail...
by Jarle Nygård on Jul 9 2008 3:06am Reply

MSG email file format

We've just uploaded the latest version 1.0.0.16 which should fix this problem for you, please download you should find that it works without issue.
by Nico Westerdale on Jul 9 2008 8:45am Reply

MSG email file format

I did a quick test and it appears that I'm experiencing the same problem. Will try more tomorrow.
by Jarle Nygård on Jul 9 2008 10:08am Reply

MSG email file format

So sorry for your problems.

If you don't mind, could you try setting 'DebugMode True' in MCore.ini and sending us the generated report.txt with the files you are converting then we'll be happy to take a look. You can email us at iconico [at] iconico [dot] com.
by Nico Westerdale on Jul 9 2008 10:44am Reply

MSG email file format

Hi,

MCore.LibWrap.EMLToMSG is not generating .msg file.
Please help to sort out the issue. 

Please find the snap of report.txt generated with debug option enabled.

7/16/2013 8:19:44 PM Initializate MAPI
7/16/2013 8:19:44 PM Config library path: C:\PROGRA~1\MICROS~4\Office12\OLMAPI32.DLL
7/16/2013 8:19:44 PM MSMAPI32Dll handle: 955121664
7/16/2013 8:19:44 PM MSMAPI32Dll intilization OK
7/16/2013 8:19:44 PM MAPI library handle: 955121664
7/16/2013 8:27:14 PM Initializate MAPI
7/16/2013 8:27:14 PM Config library path: C:\PROGRA~1\MICROS~4\Office12\OLMAPI32.DLL
7/16/2013 8:27:14 PM MSMAPI32Dll handle: 955121664
7/16/2013 8:27:14 PM MSMAPI32Dll intilization OK
7/16/2013 8:27:14 PM MAPI library handle: 955121664
7/16/2013 8:27:49 PM Initializate MAPI
7/16/2013 8:27:49 PM Config library path: C:\PROGRA~1\MICROS~4\Office12\OLMAPI32.DLL
7/16/2013 8:27:49 PM MSMAPI32Dll handle: 955121664
7/16/2013 8:27:49 PM MSMAPI32Dll intilization OK
7/16/2013 8:27:49 PM MAPI library handle: 955121664
7/16/2013 8:28:36 PM Initializate MAPI
7/16/2013 8:28:36 PM Config library path: C:\PROGRA~1\MICROS~4\Office12\OLMAPI32.DLL
7/16/2013 8:28:36 PM MSMAPI32Dll handle: 955121664
7/16/2013 8:28:36 PM MSMAPI32Dll intilization OK
7/16/2013 8:28:36 PM MAPI library handle: 955121664
7/16/2013 8:29:53 PM Initializate MAPI
7/16/2013 8:29:53 PM Config library path: C:\PROGRA~1\MICROS~4\Office12\OLMAPI32.DLL
7/16/2013 8:29:53 PM MSMAPI32Dll handle: 955121664
7/16/2013 8:29:53 PM MSMAPI32Dll intilization OK
7/16/2013 8:29:53 PM MAPI library handle: 955121664
7/16/2013 8:31:36 PM Initializate MAPI
7/16/2013 8:31:36 PM Config library path: C:\PROGRA~1\MICROS~4\Office12\OLMAPI32.DLL
7/16/2013 8:31:36 PM MSMAPI32Dll handle: 955121664
7/16/2013 8:31:36 PM MSMAPI32Dll intilization OK
7/16/2013 8:31:36 PM MAPI library handle: 955121664
7/16/2013 8:50:45 PM Initializate MAPI
7/16/2013 8:50:45 PM Config library path: C:\PROGRA~1\MICROS~4\Office12\OLMAPI32.DLL
7/16/2013 8:50:45 PM MSMAPI32Dll handle: 955121664
7/16/2013 8:50:45 PM MSMAPI32Dll intilization OK
7/16/2013 8:50:45 PM MAPI library handle: 955121664
7/16/2013 8:51:58 PM Initializate MAPI
7/16/2013 8:51:58 PM Config library path: C:\PROGRA~1\MICROS~4\Office12\OLMAPI32.DLL
7/16/2013 8:51:58 PM MSMAPI32Dll handle: 955121664
7/16/2013 8:51:58 PM MSMAPI32Dll intilization OK
7/16/2013 8:51:58 PM MAPI library handle: 955121664
7/16/2013 8:53:15 PM Initializate MAPI
7/16/2013 8:53:15 PM Config library path: C:\PROGRA~1\MICROS~4\Office12\OLMAPI32.DLL
7/16/2013 8:53:15 PM MSMAPI32Dll handle: 955121664
7/16/2013 8:53:15 PM MSMAPI32Dll intilization OK
7/16/2013 8:53:15 PM MAPI library handle: 955121664


Regrads,
Rajib Sarkar
by Rajib Sarkar on Jul 17 2013 5:34am Reply

Our Software Stores

IconicoAccurate Design and Development Software

BitsDuJourDiscount Deal Coupons for Windows and Mac Software Apps

Our Software Services

SoftwareMarketingResourceYou Wrote the Code, Now How do you Sell it?

IcoBlogOur Official Blog

© copyright 2004-2017 Iconico, Inc. Code & Design. All Rights Reserved. Terms & Conditions Privacy Policy Terms of Use