BUG: Attachments with names containing parentheses can not be opened
I've recently received some emails with attachments with names containing
parentheses. MPro (2.73.6) is unable to handle this. The immediately-visible
result is MPro reporting “unable to openâ€; checking in /tmp/gemini* shows the
presence of the file.
Editing the message to remove the parentheses allows the file to be opened
via MPro.
This looks to me like a failure to fully mangle the file name so that
shell-special characters are properly escaped or substituted for use in a
system() call.
Because of how system() works (invocation of /bin/sh – here, that's a symlink
whuch points to bash, but I wouldn't like to rely on it being dash or bash),
I prefer to use fork()+exec() (in this case, execlp() or execvp()) and avoid
any need to do any escaping or susbstitution other than of directory
separators.
--
| _ | Darren Salt, using Debian GNU/Linux (and Android)
| ( ) |
| X | ASCII Ribbon campaign against HTML e-mail
| / \ |
Take the bull by the hand and avoid mixed metaphors.
______________________________________________________________________
This message was sent via the gemini-users mailing list
To unsubscribe, mail gemini-users+unsubscribe@...
|