-
-
Notifications
You must be signed in to change notification settings - Fork 178
Description
In order to get your bug addressed in a timely manner, or at all 😃, please fill out the below bug report. Please try to make it as easy as possible for us to understand what is going on. We may close out any bugs or issues without warning that are not complete or coherent.
In the bug template below anything is [square brackets] should be filled out or removed if the item doesn't apply.
Should you encounter an error that has not already been reported, please do the following when reporting it:
Bug Metadata
- Version of extract_msg: [x.x.x]
- Your python version: Python [3.6.7]
- How did you launch extract_msg?
- My command line or
- I used the extract_msg package
Describe the bug
It try to create a folder name with over 256 character
[ If applicable ]
**What code did you use or can we use to reproduce this error?
if not os.path.isfile(msg_file):
print(f"File non trovato: {msg_file}")
return False
os.makedirs(output_dir, exist_ok=True)
msg = extract_msg.openMsg(msg_file)
msg.save(customPath=output_dir, saveHeader=True, html=True)
msg.close()
print(f"File estratto correttamente in: {output_dir}")
return True
Is there a message.msg file you want to share to help us reproduce this?
- Uploaded message (drag and drop on this window)
- Emailed message as an attachment to admins: [Enter Subject Line Here]
Traceback
Failed to create directory "C:\Users\XXX\Desktop\test\output_msg\2021-06-18_1155 R COMUNICAZIONE (3)\2021-06-18_1147 NAME EXAMPLE [TEST [TEST". Does it already exist?
Screenshots
[Insert any screenshots or debug pictures here]
Additional context
I'd appreciate a solution. Wouldn't it be better to use a safe GUID or add a parameter to specify a safe GUID folder? No one needs the folder name, since it's already included in the header.
P.S. A couple of questions
- Is possibile to NOT include the "injectedHeader" inside the HTML? I'm removing with Python, i'd like a parameter to NOT add it
- Is possible to embedded the image inside the HTML? Also this, i'm doing with Python