JoshData / JoshData/convert-outlook-msg-file

Crash OSError: [WinError 87] The parameter is incorrect

Open
#39 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
246
Forks
77
PR merge metrics
No merged PRs in 30d

Description

Pretty much what the title says:

C:\Users\User\source\open\convert-outlook-msg-file>python outlookmsgfile.py < test1.msg > test1.eml
Traceback (most recent call last):
  File "C:\Users\User\source\open\convert-outlook-msg-file\outlookmsgfile.py", line 947, in <module>
    print(load(sys.stdin), file=sys.stdout)
  File "C:\Users\User\source\open\convert-outlook-msg-file\outlookmsgfile.py", line 41, in load
    with compoundfiles.CompoundFileReader(filename_or_stream) as doc:
  File "C:\Program Files\Python310\lib\site-packages\compoundfiles\reader.py", line 198, in __init__
    self._mmap = mmap.mmap(fd, 0, access=mmap.ACCESS_READ)
OSError: [WinError 87] The parameter is incorrect

C:\Users\User\source\open\convert-outlook-msg-file>

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the Windows Python 3.10 command using test1.msg, then inspect outlookmsgfile.py line 41 and the compoundfiles.reader.py traceback at line 198. Determine why mmap raises WinError 87 for this input and verify that the same conversion completes without the crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.