Donation
Make a donation to help WiPhA development

Search




Preferences

Connect again
---

Your name (or pseudo) :

Your secret code (associated with your pseudo)


 Count of members 103 members


Connected :

(nobody)
Visits

 966327 visitors

 11 visitors online

Private
iAlertNotify.sh

Download Download file

#!/bin/sh
 
# You need to select the 
# "Convert pamareters to UTF-8" option in Yamb preferences
 
subject="$1"
sender="$2"
recipients="$3"
size="$4"
folder="$5"
acctype="$6"
accname="$7"
body="$8"
 
 
 
if [ "$acctype" == "rss" ]
then
    /usr/local/bin/iAlertRegister TbRssAlert Thunderbird 'New Rss' 2 Feed Subject true 0 'From : <big><big><b><font color="blue"><%Feed%></font></b></big></big><%if(Subject)%><br>Sujet : <big><big><b><font color="cyan"><%Subject%></font></b></big></big><%end%>'
    /usr/local/bin/iAlertPost TbRssAlert Thunderbird 2 Feed "$folder" Subject "$subject"
else
    size="$(echo "scale=2; $size/1024" | bc -l) ko"
    /usr/local/bin/iAlertRegister TbMailAlert Thunderbird 'New Mail' 4 Sender Subject Size Body true 0 '<big><b><%Alert name%></b></big> (<%Size%>)<br>De : <big><big><b><font color="red"><%Sender%></font></b></big></big><%if(Subject)%><br>Sujet : <big><big><b><font color="orange"><%Subject%></font></b></big></big><%end%><br><br><%Body%>'
    /usr/local/bin/iAlertPost TbMailAlert Thunderbird 4 Sender "$sender" Subject "$subject" Size "$size" Body "$body"
fi

Code highlighted using GeSHi
© Nigel McNie, 2004, released under the GNU GPL
^ Top ^