CodeTwo Base.title

Import or export mailbox items using MFCMAPI tool

Problem:

How to import or export mailbox items using the MFC MAPI tool.

Solutions:

There are at least two ways of importing and exporting mailbox items:

  1. You can use your MS Outlook and Windows drag and drop feature:
    • To export an item simply drag it from Outlook to your desktop and it will be saved as .msg file.
    • To import an item simply drag it into Outlook and it will be imported.
    • This option seems easy and convenient and in many, if not most cases suffices. However, items export is limited to .msg format, Outlook modifies some items' properties when exporting them this way and you actually need to have Outlook and direct access to the mailbox in question to do this. To avoid the above listed problems use option 2 and MfcMAPI.
  2. You can use a free tool - MfcMAPI:
    • First of all, you need to have MAPI profile configured on the machine on which you are about to run MfcMAPI. If you have Outlook installed but never used before MfcMapi tool will guide you through MAPI profile configuration when following steps below. In the case you do not have Outlook you can install MS CDO instead, so the MfcMAPI can talk to MAPI.

361-1
Fig. 1. MAPI profile configuration window.

361-2
Fig. 2. MAPI profile logon menu.

  • Choose the MAPI profile that will be used to access mailbox(es).

361-3
Fig. 3. MAPI profile selection window.

  • To access Public Folders or a mailbox of currently logged in user right click on the name of the mailbox and choose Open store.

361-4
Fig. 4. Mailbox selection window.

  • To access other users' mailboxes go to MDB, Open other mailboxes and pick a method of your choice

361-5
Fig. 5. Opening other users' mailboxes.

  • Expand Root Container.

631-6
Fig. 6. Mailbox view window.

  • Expand folders in the left pane to find mailbox folders.

631-6
Fig. 7. Mailbox folders view.

  • Right click on the folder of your choice and pick Open contents table.

361-8
Fig. 8. Accessing mailbox folders.

  • To import an item to this folder click Folder, Import and choose one of three available formats.

361-9
Fig. 9. Importing items into the mailbox.

  • To export an item from this folder right click on the item you picked and choose Export message. Now choose the message format.

361-10
Fig. 10. Exporting mailbox items.

361-11
Fig. 11. Item export formats menu.

  • If you were asked by CodeTwo Customer Support to provide mailbox items examples for your case troubleshooting please export them to .msg files in Unicode or ANSI, if Unicode is not possible. Be aware that .msg files must be .zipped prior to attaching to an email. This is very important as Outlook clients and intermediary Exchange servers alter some .msg files properties if they are attached to emails directly - this makes them unfit for analysis.
  • Applies to: Other
  • Categories: How-To
  • Last modified: 2015-12-18
  • Created: 2014-01-21
  • ID: 361
  • Keywords: mapi, mfcmapi, Mapi profile, MS CDO, CDO
Our Clients:
Unicef
Facebook
Shell
T-Systems
Loreal
Casio
UPS Israel
Oford University
Mitsubishi Motors
Toshiba TEC UK Imaging Systems Ltd
Illinois Institute of Technology
MAN Diesel
McDonalds India
Skoda Auto
Bank of Israel
Fujifilm
China Mobile
Santander
Samsung SDI
Skanska
Generali
Telmex
Toyota Tsusho
BECHTEL
Ricoh
BAE SYSTEMS
Federação Portuguesa de Futebol
Credit Agricole
HYUNDAI
Rothschild
Toyota Boshoku
Oriflame Romania
ING
Ikea
Nordea

Partners, certificates & awards