![]()
Extensions Thunderbird
Apple - mac
Don
Recherche
Préférences
Se reconnecter --- ![]()
( personne )
Visites
2168484 visiteurs 3 visiteurs en ligne
Nouvelles fraiches
Personnel
|
kdisplayMail.sh
![]() #!/bin/sh ############################################################################# # New mail notification using the KDE notifier system ############################################################################# subject="$1" sender="$2" recipients="$3" size="$4" folder="$5" accountType="$6" #(movemail, pop3, imap, nntp, rss) accountName="$7" body="$8" C_subject="<big><b><font color='#ff5500'>$subject</font></b></big>" C_sender="<big><font color='#0000ff'>$sender</font></big>" C_folder="<big><font color='#0000ff'>$folder</font></big>" C_size="<i>($size octets)</i>" case "$accountType" in rss) sound="/usr/share/sounds/KDE_Beep_Pop.wav" title="<i>News from</i> $C_folder" msg="$C_subject" ;; *) sound="/usr/share/sounds/KDE_Beep_ClockChime.wav" title="<i>You've got new mail</i>" msg="$C_subject from $C_sender $C_size" ## Uncomment these 2 lines to also display the message body # body=`echo "$body" | sed -e "s/$/<br>/g"` # Replace \n by <br> in the body # msg="$msg <br><br> $body" ;; esac # 1- play sound # 2- show message box # 4- log to file # 8- print msg to stderr # 16- show a passive mesage box behaviour=17 # 16|1 # Works with KDE 3.2. Another KDE version may use a different interface dcop knotify default notify "NewMailReceived" "$title" "$msg" $sound filename $behaviour 0
Code coloré par GeSHi
© Nigel McNie, 2004, livré sous GNU GPL |
Document généré en 0.08 seconde