1 # Filename: $HOME/.centericq/external
2 # Purpose: call [external] centericq actions (www.centericq.de)
3 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
4 # Bug-Reports: see http://grml.org/bugs/
5 # License: This file is licensed under the GPL v2.
6 # Latest change: Don Dez 23 11:07:31 CET 2004 [mika]
7 ################################################################################
11 # http://konst.org.ua/centericq/
12 # http://centericq.de/docs/
13 # http://centericq.de/docs/readme.php?mode=1&chapter=9.3 or ->
14 # http://centericq.de/docs/readme.php?mode=2#9.3 - External actions
16 # http://www.centericq.de/archive/contrib/external-actions/external.wschlich
17 ##############################################################################
19 # Autoresponder for Occupied-Modus
20 %action Simple occupied auto-responder
27 fname=`head -n 2 $CONTACT_INFODIR/info | tail -n 1`
28 lname=`head -n 3 $CONTACT_INFODIR/info | tail -n 1`
31 Unfortunatelly, I'm not near my box now, but I'll certainly contact you as soon as I get here.
34 # Autoresponder for NotAvailable-Modus
35 #%action Simple na away auto-responder
41 #echo "hi! I am currently *not* available but I received your message."
45 # log all messages arriving when online
46 # -> then process them for example in vim [very usefull if receiving some source!]
47 # put the following into your "~/.vimrc":
48 # map ##i :e ~/.centericq/icq_log_<C-R>=strftime("%y%m%d")<CR>
49 #%action Simple ICQ-Online-Logger
56 #date=`date +'%A %d %B %k:%M:%S'`
57 #date_log=`date +'%y%m%d'`
58 #echo "*$CONTACT_NICK* - $date:" >> $HOME/.centericq/icq_log_"$date_log"
59 #echo -e "$msg\n" >> $HOME/.centericq/icq_log_"$date_log"
61 # auto-responding chat robot :-)
62 # Get Eliza -> http://elizatalk.sourceforge.net
70 #echo $msg | elizatalk
73 #%action remote control
76 #status online away na
85 # #sensors) sudo sensors;;
88 # #dmesg) sudo dmesg;;
92 #%action fortune cookies
100 # icq message forwarding to my mobile phone
101 #%action icq message forwarding to my mobile phone
107 #cat | centericq -s sms -p icq -t <enter_your_icq_number>
109 #%pre-receive rot13-receive
113 #options stdin stdout
117 #echo "$msg" | head -n1 | grep rot13-SEND >/dev/null && {
118 # echo -n "rot13-RECV:"
119 # echo "$msg" | sed s/rot13-SEND//1 | tr "[a-m][n-z][A-M][N-Z]" "[n-z][a-m][N-Z][A-M]"
124 #%pre-send rot13-send
128 #options stdin stdout
132 #echo "$msg" | head -n1 | grep rot13: >/dev/null && {
133 # echo -n "rot13-SEND:"
134 # echo "$msg" | sed s/rot13://1 | tr "[a-m][n-z][A-M][N-Z]" "[n-z][a-m][N-Z][A-M]"
143 #options stdin stdout
146 #fmail=`head -n 4 $CONTACT_INFODIR/info | tail -n 1`
147 #check=`grep pgpkey $msg && gpg --export --armor YOURKEYID | mail -s "Public Key of Your Name" $fmail
149 #%action Ignore empty auth-messages
153 #options stdin stdout
156 #std="Please accept my authorization to add you to my contact list."
158 #prefix="* Authorization request : "
159 #reply="You didn't type a reason, your auth request is automatically ignored.";
160 #if [ "$msg" = "$prefix$std" ]; then
163 #elif [ "$msg" = "$prefix" ]; then
168 ## END OF FILE #################################################################