Allow passing filenames to --mbox that contain parentheses
authorJelte Fennema-Nio <github-tech@jeltef.nl>
Mon, 16 Jun 2025 10:27:31 +0000 (12:27 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 16 Jun 2025 10:27:31 +0000 (12:27 +0200)
commit65c446213213eecd5bd704c306ee8a8e07a25cff
treeab825e48ac9b7fb0cf39fe459889d83281b3f2b1
parent6d22fcb21a6f0bafc206123d23af501697fe6114
Allow passing filenames to --mbox that contain parentheses

Without this you would get an error like this:

Failed to parse mbox:
b'/bin/sh: 1: Syntax error: "(" unexpected\n'

This especially matters when loading files downloaded with a browser,
since those often contain (1) or (2) if a file with the same name was
downloaded earlier.
loader/lib/mbox.py