When I send sms by email, the french word “t’arrête” (without double quote !) is send by kannel (and received by the recipient) like this : “=?UTF-8?B?dCdhcnLDqnRl?=” (without double quote !)
In “Main configuration”, the french language is selected.
At last I wrote this workaround. It can decode most of base64 and quoted-printable strings. Inaccentuated chars are sent well, except for diaerasis and circumflex accents. These are displayed as question marks but this due to kannel, not playsms.
The file to edit is /playsms/plugin/feature/mailsms/fn.php around line 104.
This works well with Thunderbird, Gmail webmail, Firstclass client and so on. However there is no warranty this will work for all existing clients and webmails because some of them might use different and unhandled encoding patterns
My line numbers don’t match yours. I may have a slightly different file. But the code should go between the lines you quoted.
However, I went a bit deeper and I found this core php function I was not aware of :
iconv_mime_decode
php docs reads it is implemented since php5. However I tried it with php 5.3 and I got unexpected results. Upgrading to php 5.6 fixed the issue and it works well now.
So here is an updated version. Code has to be thrown after line 109, according to the file on Gihub.