In reference to the issue from may 19, I am trying to put event_handler below. I get the following error code in the LOG: "event handler .... is not executable for smsd"
Thanks..
-------- issue from may 19 --------
QuoteOk, you are receiving Unicode message and you need to change it to UTF-8, not ISO.
Set up an eventhandler, smsd.conf:
eventhandler = /usr/local/bin/smsd_eventhandler
and the file:#!/bin/bash
if [ "$1" = "RECEIVED" ]; then
alphabet=`formail -zx Alphabet: < $2`
if [ "x$alphabet" = "xUCS2" ]; then
TMPFILE=`mktemp /tmp/smsd_XXXXXX`
sed -e '/^$/ q' < $2 | formail -f -I "Alphabet: UTF-8" > $TMPFILE
sed -e '1,/^$/ d' < $2 | iconv -f UNICODEBIG -t UTF-8 >> $TMPFILE
mv $TMPFILE $2
fi
fi'bash' Syntax Highlight powered by GeSHi