X
Tap here to go to the mobile version of the site.

Support Forum

Commandline: attaching files containing commas in the path

Posted

Trying to attach files via command line (Windows 10): >Thunderbird -compose "attachment='C:\TEMP\one.txt'" Works well.

Trying to attach files with comma in filename: >Thunderbird -compose "attachment='C:\TEMP\one, two.txt'" Causes error like "File C:\TEMP\one doesn't exists, therefore can't be attached" (translated from Russian).

TB uses comma to separate filenames/paths for each attachment, but comma in filename causses problem. How to solve this problem?

Trying to attach files via command line (Windows 10): >Thunderbird -compose "attachment='C:\TEMP\one.txt'" Works well. Trying to attach files with comma in filename: >Thunderbird -compose "attachment='C:\TEMP\one, two.txt'" Causes error like "File C:\TEMP\one doesn't exists, therefore can't be attached" (translated from Russian). TB uses comma to separate filenames/paths for each attachment, but comma in filename causses problem. How to solve this problem?
Quote

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36

More Information

Toad-Hall
  • Top 10 Contributor
1673 solutions 11119 answers

located a bug report which seems to be the same issue. https://bugzilla.mozilla.org/show_bug.cgi?id=743579 The info in the bug report may help you.

The ',' character is used to separates multiple attachments and so is causing some confusion when the comma is used within a filename. Try writing the comma ',' as %2C (the hex ASCII encoding of the comma character).

located a bug report which seems to be the same issue. https://bugzilla.mozilla.org/show_bug.cgi?id=743579 The info in the bug report may help you. The ',' character is used to separates multiple attachments and so is causing some confusion when the comma is used within a filename. Try writing the comma ',' as '''%2C''' (the hex ASCII encoding of the comma character).
Was this helpful to you? 0
Quote

Question owner

Neighter >Thunderbird -compose "attachment='C:\TEMP\one%2C two.txt'" nor >Thunderbird -compose "attachment='C:\TEMP\one%2C%20two.txt'" don't work for me. Same error.

BTW, how could I attach file like "something%2C.txt"? Will TB recognize %2C as comma code or as part of filename?

Neighter >Thunderbird -compose "attachment='C:\TEMP\one%2C two.txt'" nor >Thunderbird -compose "attachment='C:\TEMP\one%2C%20two.txt'" don't work for me. Same error. BTW, how could I attach file like "something%2C.txt"? Will TB recognize %2C as comma code or as part of filename?
Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.