JoshData / JoshData/convert-outlook-msg-file
Crash OSError: [WinError 87] The parameter is incorrect
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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