Skip to content

Trailing space in folder is illegal in Windows #471

@bigtonylewis

Description

@bigtonylewis

Should you encounter an error that has not already been reported, please do the following when reporting it:
Bug Metadata

  • Version of extract_msg: 0.55.0 (as reported when installed using pipx)
  • Your python version: Python 3.12.3
  • How did you launch extract_msg?
    • [ X] I used the extract_msg package

Describe the bug
When a message's subject is converted into a folder name, if the truncation happens on a space, it makes a folder that is illegal in Windows. This then requires manual intervention to fix.

Ideally, I think the code should check for a trailing space and remove it automatically.

My use case specifically is that my sync between Linux (where I run extract_msg) and Windows then fails because of the illegal filename(s)

Thanks for a super-useful tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions