Giter Club home page Giter Club logo

mfcmapi's Introduction

mfcmapi

MFCMAPI provides access to MAPI stores to facilitate investigation of Exchange and Outlook issues and to provide developers with a sample for MAPI development.

Latest release
Release stats (raw JSON)
Pretty release stats

Contributing

MFCMAPI depends on the MAPI Stub Library. When cloning, make sure to clone submodules. See Contributing for more details.

Help/Feedback

For assistance using MFCMAPI, developing add-ins, or general MAPI development, consult the documentation. Find a bug? Need help? Have a suggestion? Report your issues through the issues tab.

Badges

continuous-integration
Clang-format
CodeQL
Dependency Review
DevSkim
OpenSSF Scorecard
OpenSSF Best Practices
Facebook

mfcmapi's People

Contributors

anjalichandnani-ms avatar bradhugh avatar dependabot[bot] avatar desjarlais avatar jengelh avatar oldnewthing avatar step-security-bot avatar stephenegriffin avatar youtiaocoder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mfcmapi's Issues

Outlook 2016

Trying to use MFCMapi for the first time on Windows 10 and Outlook 2016. Getting error messages when trying to logon. Most recent error "Outlook cannot log on. Verify you are connected to the network and are using the proper server and mailbox name..." Is there something special I need to do on Windows 10/Outlook 2016?

capture

EML to MSG conversion not working

I have been using mrmapi successfully for almost two years with Outlook 2013.
Unfortunately after migrating to Outlook 2016 or just after some updates to Outlook 2016 (I don't know exactly when it has started happening but I think it was a month ago) mrmapi stopped working and my project on github (mailsync) is useless because I can't do conversion from EML to MSG (outlook format).
When I invoke mrmapi (with Outlook 2016 x86 installed), with following parameters (-Ma -i input.eml -o output.msg -Cc CCSF_SMTP) I am receiving following error "MAPI <-> MIME converter not found. Perhaps Outlook is not installed.".
And small unreadable for Outlook file is being saved to drive.

When I invoke EML to MSG conversion from GUI (MFCMAPI), I am receiving three message boxes:
"Error: IConverterSession not found. This interface is only supported by Outlook 2003 and higher.
Code: REGDB_E_CLASSNOTREG == 0x80040154
Function CoCreateInstance(CLSID_IConverterSession, NULL, CLSCTX_INPROC_SERVER, IID_IConverterSession, reinterpret_cast<LPVOID*>(&lpConverter))
File MapiMime.cpp
Line 27"
second:
"Error:
Code: REGDB_E_CLASSNOTREG == 0x80040154
Function ImportEMLToIMessage( lpszEMLFile, pMessage, ulConvertFlags, bApply, hCharSet, cSetApplyType, lpAdrBook)
File MapiMime.cpp
Line 173"
third:
"Error:
Code: REGDB_E_CLASSNOTREG == 0x80040154
Function ConvertEMLToMSG( emlfile.c_str(), msgfile.c_str(), ulConvertFlags, bDoApply, hCharSet, cSetApplyType, lpAdrBook, bUnicode)
File Dialogs\ContentsTable\MainDlg.cpp
Line 1723"

It happens both on newest version of Your software (November 2016) and on older versions as well.
Has someone report such errors?
Maybe it is business decision to stop supporting conversions in newest Outlook version (such functionality has been working fine with previous outlook versions)? It would be very sad decision.

Error: Code: STG_E_INVALIDNAME == 0x800300FC

Hi!

I am recovering individual items from Office 365 using Windows 10, Office 2013 and the latest version MFCMapi.exe.16.0.16319.01 that I've downloaded today from your website.

For some objects, I get the following 3 errors that I have to manually acknowledge by clicking OK (3 times).

It very much seems like there is an issue with parsing the subject and generating the .msg filename, i.e. invalid characters; or filepath is too long?

I managed to reduce the amount of errors by exporting to C:\1\ instead of to my Desktop under C:\Users\raoul\Desktop\export\

Error: 
Code: STG_E_INVALIDNAME == 0x800300FC
Function MyStgCreateStorageEx( szFileName, STGM_READWRITE | STGM_TRANSACTED | STGM_CREATE, STGFMT_DOCFILE, 0, &myOpts, nullptr, __uuidof(IStorage), reinterpret_cast<LPVOID*>(&pStorage))
File File.cpp
Line 600
Error: 
Code: STG_E_INVALIDNAME == 0x800300FC
Function CreateNewMSG(szFileName, bUnicode, &pIMsg, &pStorage)
File File.cpp
Line 650
Error: 
Code: STG_E_INVALIDNAME == 0x800300FC
Function SaveToMSG( lpMessage, szFileName.c_str(), bUnicode, hWnd, false)
File File.cpp
Line 454

Row Icons Small on SurfaceBook

Although, looking at the screenshot, icons look to be scaled properly with the font. Perhaps the font needs to be bigger
rowicons

Flicker While Resizing Editors

Seems to be new after Windows 10 Creator update - looks like we're not getting a constant single line height as we resize.

PR_PST_PATH issue

Machine:

Windows 10 x64 version 10.0.14393 (with all updates installed on 27 Mar, 2017).
Outlook 2016 x86 version 1702 (build 7870.2024)

The issue:

When adding PST file using MFCMAPI, PR_PST_PATH gets weird values depending on PST full path.

Prerequisites:

  1. Put a PST file on a local drive. In my case, in the root of C:.
  2. Create a local SUBST'ed drive and put a PST file there. In my case, S: substed to C:\temp.
  3. Create a network mapped drive and put a PST file there. In my case, N: mapped to \\server\share

Steps to reproduce in MFCMAPI:

  1. Select Profile -> Show profiles and select the required profile.
  2. Select Actions -> Services -> Add PST... and select the C:\file.pst. Click OK.
  3. Select Actions -> Services -> Add PST... and select the S:\file.pst. Click OK.
  4. Select Actions -> Services -> Add PST... and select the N:\file.pst. Click OK.
  5. Select Actions -> Open profile.
  6. Select the service for the first added PST file and open it. Select the appropriate provider. Look at the PR_PST_PATH property. It's "\\?\C:\file.pst".
  7. Select the service for the second added PST file and open it. Select the appropriate provided. Look at the PR_PST_PATH property. It's "\\?\C:\temp\file.pst".
  8. Select the service for the third added PST file and open it. Select the appropriate provider. Look at the PR_PST_PATH property. It's "\\?\UNC\server\share\file.pst".

Expected behavior (when opening PST files right in Outlook using File -> Open -> Open Outlook Data File):

  1. PR_PST_PATH for the "C:\file.pst" is "C:\file.pst".
  2. PR_PST_PATH for the "S:\file.pst" is "S:\file.pst".
  3. PR_PST_PATH for the "N:\file.pst" is "N:\file.pst".

As you can see, when adding PST using MFCMAPI, mapped and substed drives are being resolved to their original locations. All other local files prefixed with "\\?\".

Why is that? And how to fix it?

Logon with MapiHttp profile

Steve,

if i create a new outlook profile (OL2010) that uses Mapi/Http, MFCMAPI crashes with Sesssion/Logon.
However, outlook is able to open and use the profile just fine.

i know that i have a Mapi/Http profile due to the following:

  1. server is enabled.
  2. connection status in outlook shows it.
  3. profile details show entries for https://server.name/mapi/emsmdb/?MailboxId=
  4. Outlook is [obviously from #2] properly patched/updated to support mapi/http.

is an application not able to use mapi/http separate from outlook? i'm trying to change my connections in an application to use mapi/http, but even a simple logon (outside of MFCMAPI) also crashes.

Regards,
Eriq VanBibber

Migrate issues from codeplex

There are a few open issues over on codeplex - migrate and close them by hand.

Also - look in to options for migrating issues database

Large icons

Hi,

not sure, whether this is a bug or by design (skipped two years of development and moved from 15.0.0.1041 to 17.0.17033.02) but these large low-res icons are not looking very nice. Are they intended to look that way?

image

Crash Modifying Property on Moved Item

Find a message
Open stream prop on message (PR_HTML)
From Outlook or somewhere else, move the message to another folder
OK or cancel on stream prop editing
Result:
Crash on null property bag
Expected:
no crash

x64 Crashes on Session Logon

Session/Logon Immediately crashes the app. I've tried this on MFCMapi.exe.x64.17.0.17099.01, MFCMapi.exe.x64.17.0.17069.01, and MFCMapi.exe.x64.17.0.17033.02

Source
MFCMAPI x64

Summary
Stopped working

Date
‎5/‎4/‎2017 3:41 PM

Status
Report sent

Description
Faulting Application Path:	C:\Apps\MFCMAPI.exe

Problem signature
Problem Event Name:	BEX64
Application Name:	MFCMAPI.exe
Application Version:	17.0.17099.1
Application Timestamp:	58ea5e6c
Fault Module Name:	OLMAPI32.DLL
Fault Module Version:	16.0.7967.6531
Fault Module Timestamp:	58f77e35
Exception Offset:	00000000001cc358
Exception Code:	c0000409
Exception Data:	0000000000000007
OS Version:	10.0.14393.2.0.0.256.48
Locale ID:	1033
Additional Information 1:	3f46
Additional Information 2:	3f4655693f23e39527312bb59ef8e175
Additional Information 3:	36a5
Additional Information 4:	36a5db6f311abacb4ef1cf62bb74b575

Extra information about the problem
Bucket ID:	53490bf6783614a65b6ae16264d98cff (116372456740)

I have 1 Outlook profile. I made 1 change and it stopped crashing:
Tools/Options/Force the use of Outlook's MAPI files
Previous versions of this (that I used before Windows 10 or Outlook 2016 or Office365) I never had to do this. Maybe it's documented somewhere, but I couldn't find it. As this is a new platform (Win10/Outlook2016/ExOL), I'm not really sure this is a bug so much as just a learning curve and some documentation.
PS> couldn't find any debug logs.

Error Code: MAPI_E_INTERFACE_NOT_SUPPORTED == 0x80004002

Hi,

When I try to export an Outlook 2016 autocomplete file by following these instructions, I get these errors:

Error:
Code: MAPI_E_INTERFACE_NOT_SUPPORTED == 0x80004002
Function lpSource->CopyTo( 0, NULL, lpExcludedTags, lpProgress ? reinterpret_cast<ULONG_PTR>(hWnd) : NULL, lpProgress, lpGUIDLocal, lpDest, ulCopyFlags, &lpProblems)
File MAPIFunctions.cpp
Line 2717

Error:
Code: MAPI_E_INTERFACE_NOT_SUPPORTED == 0x80004002
Function CopyTo( hWnd, lpMessage, pIMsg, &IID_IMessage, LPSPropTagArray(&excludeTags), false, bAllowUI)
File File.cpp
Line 676

Error:
Code: MAPI_E_INTERFACE_NOT_SUPPORTED == 0x80004002
Function SaveToMSG(lpMessage, filename.c_str(), true, m_hWnd, true)
File Dialogs\ContentsTable\FolderDlg.cpp
Line 1575

Can someone help me out? Thanks

MrMAPI: Request to add an option to access another user's mailbox via service account logon

Migrated from https://mfcmapi.codeplex.com/workitem/16752
MrMAPI: Request to add an option to access another user’s mailbox via service account logon.

MrMAPI is a handy tool to use and demonstrate usages of Extended MAPI with Exchange.
We see our customer using MrMAPI to automate some tasks, to read info out of Exchange which is not available via another Messaging APIs.
However, to utilize MrMAPI to its full potential in scenario like above it should have an option to pass another user mailbox (as parameter) to be accessed by service account logon.

Regards,
Brijs

Implement smart select for smart view parsed properties

It would be very helpful if selections in Smart View would highlight the hex/binary that the value was derived or decoded from. Similarly, selections in the hex/binary could cause highlighting to occur in the smart view for the parsed values.

Error when trying to convert MSG to EML

Hi, thank you for creating this and providing it free of charge!

I'm trying to convert an MSG file to EML but I'm running into an error. I'm running Outlook 2016 x64 in a Windows Domain on Windows 10 version 1703.

  1. I fire up MFCMAPI.exe x64 version 17.0.17099.1
  2. go to Advanced → Import / Export → Convert MSD to EML…
  3. leave all options as default and hit the OK button
  4. select the test.msg and hit the Open button
  5. save it as test.eml and hit the Save button
  6. then I get three errors, listed below in full
  7. I hit the OK button on each one and that’s it, no EML file created.

Error 1

Error: IConverterSession not found. This interface is only supported by Outlook 2003 and higher.
Code: REGDB_E_CLASSNOTREG == 0x80040154
Function CoCreateInstance(CLSID_IConverterSession, nullptr, CLSCTX_INPROC_SERVER, IID_IConverterSession, reinterpret_cast<LPVOID*>(&lpConverter))
File MapiMime.cpp
Line 82

Error 2

Error: 
Code: REGDB_E_CLASSNOTREG == 0x80040154
Function ExportIMessageToEML( pMessage, lpszEMLFile, ulConvertFlags, et, mst, ulWrapLines, lpAdrBook)
File MapiMime.cpp
Line 209

Error 3

Error: 
Code: REGDB_E_CLASSNOTREG == 0x80040154
Function ConvertMSGToEML( msgfile.c_str(), emlfile.c_str(), ulConvertFlags, et, mst, ulWrapLines, lpAdrBook)
File Dialogs\ContentsTable\MainDlg.cpp
Line 1715

Outlook 2016 x64 is currently running while this happens, but having Outlook closed makes no difference.

The folder I’m trying to write to is in my %USERPROFILE%\Downloads directory and has no special permissions (they’re all default).

I’ve added screenshots of each stage in the process just in case that’s helpful.

Once again, thank you very much for this, I can't wait to get it working!

mfcmapi_2017-05-16_16-34-57

mfcmapi_2017-05-16_16-36-28

mfcmapi_2017-05-16_16-38-32

mfcmapi_2017-05-16_16-38-54

mfcmapi_2017-05-16_16-39-10

mfcmapi_2017-05-16_16-39-49

mfcmapi_2017-05-16_16-39-57

mfcmapi_2017-05-16_16-40-06

Crash on exit MFCMapi (Outlook 2016)

Hello,

Outlook 2016 16.0.8229.2073 always crashes when I exit MFCMapi. I login to simple profile with single PST store configured (no imap4 no exchange etc). When i exit MFCMapi i always get crash at Mso20win32client.dll!61b5854e(). I know this is not MFCMapi bug, but maybe there is some workaround for this? Like some new undocumented flag for MAPILogonEx or Logoff?

Step to reproduce:

  1. Have Outlook profile with single local pst store
  2. Run MFCMapi
  3. Login
  4. Exit MFCMapi

It crashes Unhandled exception at 0x61B5854E (Mso20win32client.dll) in MFCMapi.exe: 0xC0000005: Access violation writing location 0x00000000.

ListButtons Drawn Wrong

Even if this spacing is correct (it's not) I shouldn't be able to make the window this narrow so they don't render:
listbuttons

MFCMAPI crashes when converting MSG File To EML

When trying to convert an MSG-File stored with Office 2016 to EML MFCMAPI crashes with the following Signature:

Problemsignatur:
Problemereignisname: APPCRASH
Anwendungsname: MFCMAPI.exe
Anwendungsversion: 17.0.17069.1
Anwendungszeitstempel: 58c30d16
Fehlermodulname: OUTLMIME.DLL
Fehlermodulversion: 15.0.4937.1000
Fehlermodulzeitstempel: 591aad8d
Ausnahmecode: c0000005
Ausnahmeoffset: 0000000000026fd1
Betriebsystemversion: 6.1.7601.2.1.0.256.4
Gebietsschema-ID: 1031
Zusatzinformation 1: f1bb
Zusatzinformation 2: f1bbdbeb92ab5ae36524f06de11ab5c2
Zusatzinformation 3: 4a08
Zusatzinformation 4: 4a0861c11a656fd9e13d86d0b704ff0b

Please find msg-file attached
Hi please find invoices attached thanks & enjoy your evening Kerri.zip

Crashing - MFCMAPI X86 Has Stopped Working

I saved my autocomplete list on the old Win 7 computer and now need to restore it on a Win 10 Pro 64 bit machine with all the latest MS updates. When I run MFC MAPI it opens - and then when I click Session Logon it crashes with the error "MFCMAPI X86 Has Stopped Working". I've tried running as admin, running in compatibility mode, etc, etc. please help as I need to restore this list. This is with Outlook 2016 32bit.

Cannot Hard Delete Corrupted Folder

Hi,

I have a corrupted folder in my account. It cannot be deleted from Outlook normally so I resorted to MFCMAPI. Problem is, while I can delete the folder normally, it will come back some times later. That's why I decided to try with the hard delete option, but it gives me this error after clicking OK and the folder is not deleted.
image
Thank you

Remove spaces from XML tags

When exporting a message to XML, you output a tag foo</Other Names>. That’s not valid XML. Please change it to .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.