Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access violation when importing MSG #608

Open
miloush opened this issue Aug 18, 2023 · 0 comments
Open

Access violation when importing MSG #608

miloush opened this issue Aug 18, 2023 · 0 comments

Comments

@miloush
Copy link

miloush commented Aug 18, 2023

I am trying to import MSG file(s) into a folder of an Internet Folders store (an IMAP account). When I open the target folder and execute Folder > Import > From MSG... with Load message into current folder style, MFCMapi throws access violation at:

hRes = EC_MAPI(lpMessage->SaveChanges(KEEP_OPEN_READWRITE));

with the following call stack:

PSTPRX32.DLL!CImapSyncManager::HrSyncFolder(struct _feid *,struct IMAPIProgress *,int,int,unsigned long *)
PSTPRX32.DLL!CIMAPFolderProxy::EmIIMAPFolder::OnFolderChanged(void)
PSTPRX32.DLL!CIMAPMessageProxy::OnFolderChanged(void)
PSTPRX32.DLL!CIMAPMessageProxy::EmIIMAPMessage::CheckPoint(unsigned long)
PSTPRX32.DLL!CIMAPMessageProxy::SaveChanges(unsigned long)
MFCMapi.exe!file::LoadFromMSG::__l14::<lambda_2>::operator()()
MFCMapi.exe!file::LoadFromMSG(const std::wstring & szMessageFile={...}, IMessage * lpMessage=0x000002788542cb08, HWND__ * hWnd=0x00000000000f0c20)
MFCMapi.exe!dialog::CFolderDlg::OnLoadFromMSG::__l18::<lambda_2>::operator()()

Interestingly the message does actually appear in the store and I can see it in the Outlook, however, restarting MFCMapi and logging into a session after each file is slightly inconvenient, as I have thousands files to import.

Anything I can do? I tried to pass various flags to SaveChanges but it did not help.

(I can drag & drop the MSG files into the folder using Outlook, however, they will have received dates of the import, not of the original files.)

MFCMAPI version 16.0.0.1044
Outlook Version: 16.0.16811.20004

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant