SMS Server Tools 3
This site is hosted by Kekekasvi.com
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. Please login or register. Sat Apr 20, 2024 15:26
SMSTools3 Community » Help and support Bottom

[solved] UTF-8 files created in INCOMING folder (from may 19)

  This topic is locked

Page:  1

Author Post
Member
Registered:
May 2009
Hi,
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 --------

Quote
Ok, 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


Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
chmod 755 /usr/local/bin/smsd_eventhandler

Member
Registered:
May 2009
Topic owner
Hi,

Thanks...

It worked ..

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.