Send File From Linux Command Line to Thunderbird

technology.pngA little script/tweak/tip for you folks who use Tux Commander (or any other light file manager) in Linux:

One thing that I sorely missed was the ability to send files via e-mail from the file manager or command line. And, of course, I finally got around to realizing there probably is a way to do that…

So to save you some time, I’ve got a BASH script for sending attachments via e-mail. It tests to make sure it’s looking at a file (and tests for absolute vs. relative paths). If you want to make the script a lot bigger and more complex, it’d be easy to do so (and have it ask for addressee, etc, etc), but it does one thing, and does it just fine for me. The command line syntax was ganked from http://www.kbrandt.com/2008/05/quick-tip-tunderbird-email-from-command.html; my main contribution is adding in some error trapping.

Popular posts:

  • HOWTO Make Your Hamburger Helper Better
  • If there's one Nazi (or a racist) at the table...
  • Word Porn Quotes
  • Bash string padding with SED
  • SOLVED: Command line BPM (beats per minute) Analysis in Linux
  • Odds and Ends: Optimizing SSHFS, moving files into subdirectories, and getting placeholder images
  • Everything Is Awful and I'm Not Okay, in multiple formats.