NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
super_poussin
May 17, 2010Virtuoso
New Transmission add-on thread
The previous thread was very long time to open a new one and prepare the 2.0 :)
super_poussin
Jun 10, 2010Virtuoso
I have done a big update for X86 units :
Now transmission can send an email when a torrent is finished downloading
To be able to receive email you have two solutions :
1st) modif your alert settings in frontview and use custom-provider instead of internal and also use advanced parameters
2d) modify the email_alert file located in /addons-config/Transmission/ :
replace the email_alert file with this one and do not forget to change SMPT_SERVER value to a correct one
Transmission 2.00b03 with email support for x86 only
Enjoy this hard work
PS : you can disable email in settings.json
changing
to
Now transmission can send an email when a torrent is finished downloading
To be able to receive email you have two solutions :
1st) modif your alert settings in frontview and use custom-provider instead of internal and also use advanced parameters
2d) modify the email_alert file located in /addons-config/Transmission/ :
replace the email_alert file with this one and do not forget to change SMPT_SERVER value to a correct one
#!/bin/sh
NAIL=/usr/bin/nail
SMTP_SERVER=smtp.orange.fr
SUBJECT="Torrent Done!"
if [ -f /etc/frontview/alert.conf ]; then
EmailTo=`/bin/grep "email" /etc/frontview/alert.conf | /usr/bin/awk -F '!!' '{ print $2 }' | /usr/bin/awk -F ',' '{ print $1 " " $2 " " $3 }'`
else
EmailTo=`/bin/grep "email" /frontview/conf/alert.conf | /usr/bin/awk -F '!!' '{ print $2 }' | /usr/bin/awk -F ',' '{ print $1 " " $2 " " $3 }'`
fi
if [[ "$(readlink `which sendmail`)" = "/usr/bin/msmtp" ]]; then
EmailFrom=`/bin/grep '^from' /etc/msmtprc | /usr/bin/cut -f2 -d' '`
else
EmailFrom=`/bin/echo $EmailTo | awk '{ print $1 }'`
fi
echo "From:$EmailFrom To:$EmailTo"
# Create the email message
EmailFile=/tmp/tmp_email.txt
if [ -f "$EmailFile" ]; then
rm -f $EmailFile
fi
touch $EmailFile
# Create the message headers
echo "Date: `date -R`" >> $EmailFile
#echo "From: $EmailFrom" >> $EmailFile
#echo "To: $EmailTo" >> $EmailFile
#echo "Subject:Torrent Done!" >> $EmailFile
#echo "MIME-Version: 1.0" >> $EmailFile
#echo "Content-Type: text/plain; charset=ISO-8859-1" >> $EmailFile
echo "" >> $EmailFile
# Create the message body
/bin/echo " Hostname: $HOSTNAME" >> $EmailFile
/bin/echo "Transmission finished downloading \"$TR_TORRENT_NAME\" on $TR_TIME_LOCALTIME" >> $EmailFile
/bin/echo "" >> $EmailFile
/bin/echo "----------------------------------------------------------------------" >> $EmailFile
/bin/echo "Your add-ons developer Super-Poussin" >> $EmailFile
#/bin/cat $EmailFile |/usr/sbin/sendmail -f $EmailFrom $EmailTo
$NAIL -v -S from="$EmailFrom" -S smtp -s "$SUBJECT" -S smtp=$SMTP_SERVER "$EmailTo" < $EmailFile
rm -f $EmailFile
#################################################################################################################
# you can use nail instead of readynas exim in this case : #
# uncomment the $NAIL line #
# comment the message header section #
# put a correct SMTP_SERVER value #
#################################################################################################################
#################################################################################################################
# this script will work with exim if you use custom parateters in frontview aka you specify : #
# username #
# smtp server ans so on #
#################################################################################################################
Transmission 2.00b03 with email support for x86 only
Enjoy this hard work
PS : you can disable email in settings.json
changing
"script-torrent-done-enabled": true,
to
"script-torrent-done-enabled": false,
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!