Corporate Information | Software | Support | Contact Us
Corporate Information
Messenger Pro
Messenger Pro Downloads
Beta and Archived Downloads
Messenger Pro FAQ
Messenger Pro Change Log
Messenger Pro (Windows/Linux/Mac) Mailing List Archive
Messenger Pro (RISC OS) Mailing List Archive
Bug Tracker
Contact Us

BUG: Attachments with names containing parentheses can not be opened

From:Darren Salt Date:15 Jan 2020 20:39
Replies: Re: BUG: Attachments with names containing parentheses can not be opened (David Chapman)

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

|  _  | 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@...

© 2024 intellegit ltd. -