Attach files directly from Thunderbird command line


Install the script ( e.g attach.sh )


#! /bin/bash
#
# Script created by ASID
# Modified by sura
# Attach files to thunderbird

temp=""
count=0
mydir=`pwd`
for i in $*
do
count=$(( $count + 1 ))
if [ $count -eq $# ]
then
temp=${temp}file://${mydir}/${i}
else
temp=${temp}file://${mydir}/${i},
fi
done

echo $temp

if thunderbird -remote "ping()" 2> /dev/null ;
then
thunderbird -remote "xfeDoCommand(composeMessage,attachment='$temp')"
else
thunderbird --compose "attachment='$temp'"
fi

Related

Other 4063507478504915286

Post a Comment

  1. Hi there! I just wanted to ask if you ever have any trouble with hackers? My last blog (wordpress) was hacked and I ended up losing many months of hard work due to no data backup. Do you have any solutions to prevent hackers?

    ReplyDelete

emo-but-icon

Follow Us

Hot in week

Comments


www.tecplatform.com is a technology blogging platform.Copyright © 2013 Technology Platform™. All Rights Reserved.

Side Ads

Ads code here

Text Widget

Connect Us

item