Evolution replaces brackets and spaces with underscores in filenames when saving attachments from an email
In 3.38.x I've noticed that when I want to download/save the attachments from an email I received, some parts of the filename will get renamed to underscores, including any whitespaces and parentheses (and possibly other characters that I might not have noticed). I don't recall experiencing this in previous versions of Evolution.
This automatic renaming behavior is super annoying, it messes up the file names in a way that causes a bunch of problems:
- Readability issues
- Mangling the filenames means you automatically get filename divergence between you and the other party (when you want to re-attach a new version of the file, for example), which makes collaboration much more difficult
- May break line wrapping in various apps (like Nautilus' icon view multi-line filenames, maybe?)
- Creates more work for me because I then have to not only review and rename all those saved files to fix their filenames, but there is also no easy programmatic way to do so, because it's not just one character that gets replaced (i.e. not just whitespaces, but also parentheses) so information is already lost.
For example if I receive an email with an attachment named: QC A-0525-AF Mandat de représentation (9).pdf
I hit the "Save As" action, or the "Save All" button, and suddenly that filename becomes (in the FileChooser, and Nautilus): QC_A-0525-AF_Mandat_de_représentation__9_.pdf
. An attachment named Screenshot_2021-01-10 [Geofront] Access Restrictions.png
would become Screenshot_2021-01-10_[Geofront]_Access_Restrictions.png
, and so on...