linux - Using Thunderbird, how can one attach from command line a file containing commas (,) in its name?
2014-07
thunderbird -compose "attachment='$HOME/test test.txt'"
works.
thunderbird -compose "attachment='$HOME/test, test.txt'"
does not work and gives a file does not exist
error message.
This must be because of the way Thunderbird handles command line arguments; e.g.,
thunderbird -compose "to='[email protected]',attachment='~/file.txt'"
The compose
arguments are separated by ,
and that must be why having a ,
in the file name breaks things. I cannot, however, think of a way to "escape" commas in the file name.
Note:
- In Thunderbird 3+, using the protocol
file://
is not required any more.
Both
thunderbird -compose "attachment='$HOME/test test.txt'"
and
thunderbird -compose "attachment='file://$HOME/test test.txt'"
work.
Neither
thunderbird -compose "attachment='$HOME/test, test.txt'"
nor
thunderbird -compose "attachment='file://$HOME/test, test.txt'"
works.
From reading around the web, it looks like Firefox's "quick view" of an RSS feed sometimes lets you "Subscribe to this feed using" Thunderbird. For whatever reason, that's not an automatically-added option with my setup (FF 3.5.something + Thunderbird 3.0.something on Linux), so I figured I could just "Choose Application...", point at the Thunderbird binary, and be on my way. Not so -- nothing appears to happen. If I run thunderbird from the command line as
thunderbird "http://path/to/feed"
the app launches as normal. If it's already running, absolutely nothing happens.
Is this impossible? Is there some mojo I can pass Firefox to tell it that Thunderbird exists? Should I just suck it up and copy/paste the URLs manually?
Well, of course I'll find the answer minutes after I post this question. For others with the same problem, see here. In short, you need to call thunderbird with "-mail feed:(your link)". Because, of course, you add an RSS feed in mail mode.... WTF?