summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBertrand Jacquin (Beber) <beber@meleeweb.net>2007-09-20 16:51:18 +0200
committerbeber <beber@otis.meleeweb.net>2007-09-20 16:51:18 +0200
commit23e2e4b8874d60d2acf92b2da1c8a621d0a5f003 (patch)
tree67dbaea23f19562abf439e0d17cdea7a007cf30a
parentupdate git hooks (diff)
downloadperso-23e2e4b8874d60d2acf92b2da1c8a621d0a5f003.tar.gz
change email, add an old script
-rw-r--r--mail_exec/dothat.sh2
-rwxr-xr-xscripting/audacious-gajim-status.sh17
-rw-r--r--scripting/svn/mail-svn.sh4
3 files changed, 20 insertions, 3 deletions
diff --git a/mail_exec/dothat.sh b/mail_exec/dothat.sh
index 12031f6..7bb6e89 100644
--- a/mail_exec/dothat.sh
+++ b/mail_exec/dothat.sh
@@ -33,6 +33,6 @@ cat ${EXEC} | while read line
OUTPUT="${SENDER}
${OUTPUT}"
-cat ${OUTPUT} | /usr/bin/mailx -s "DOTHAT: Reply to ${SENDER} at ${DATE}" ${SENDER} beber.mailing@gmail.com
+cat ${OUTPUT} | /usr/bin/mailx -s "DOTHAT: Reply to ${SENDER} at ${DATE}" ${SENDER} beber@meleeweb.net
exit 0
diff --git a/scripting/audacious-gajim-status.sh b/scripting/audacious-gajim-status.sh
new file mode 100755
index 0000000..c267117
--- /dev/null
+++ b/scripting/audacious-gajim-status.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+# (c) 2006 Bertrand Jacquin <beber:meleeweb.net>
+# Under GPL-2 Licence
+
+ACCOUNT="MeleeWeb/Perso"
+
+status_message=$(gajim-remote get_status_message ${ACCOUNT} | sed -r -e 's/(.*) ~ (.*)/\1/')
+status_presence=$(gajim-remote get_status ${ACCOUNT})
+
+if [ ! -z "$1" ]; then
+ new_message="${status_message} ~ $1"
+else
+ new_message="${status_message}"
+fi
+
+gajim-remote change_status "${status_presence}" "${new_message}" "${ACCOUNT}"
diff --git a/scripting/svn/mail-svn.sh b/scripting/svn/mail-svn.sh
index 40d49c3..85cfba5 100644
--- a/scripting/svn/mail-svn.sh
+++ b/scripting/svn/mail-svn.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-# By Beber <beber.gentoo:gmail.com>
+# By Beber <beber@meleeweb.net>
# Under GPLv2
@@ -19,7 +19,7 @@ do
echo "Couldn't get $REPOS_NAME version"
exit
fi
-
+
if [ ! -f ".last-repos-look-$REPOS_NAME" ]
then
echo $LAST_GET_REV > ".last-repos-look-$REPOS_NAME"