Re: [exim] decoding base64

Etusivu
Poista viesti
Vastaa
Lähettäjä: Wolfgang Breyha
Päiväys:  
Vastaanottaja: exim-users@exim.org
Aihe: Re: [exim] decoding base64
Bjørnar Ness wrote on 16/09/15 20:15:
> 2015-09-16 19:56 GMT+02:00 Bjørnar Ness <bjornar.ness@???>:
>> Is there no b642str function? I cant seem to find it.
>>
>> Also, When I insert a header in a mail using str2b64 I am unable
>> to read the decoded content of this header (decoded) using $bh_ or $h_
>> I only get the b64 encoded string. From what I understand from the
>> documentation, this is wrong?


Most likely the encoding is broken. The documentation says:
" If decoding of what looks superficially like a MIME “word” fails, the raw
string is returned. "

> To answer this question myself:
>
> =?UTF-8?B?${str2b64:$acl_c_scfg}?=


You should use
${rfc2047:<string>}
instead for header encoding IMO.

Maybe this fixes your decoding problems as well.

Greetings, Wolfgang
--
Wolfgang Breyha <wbreyha@???> | http://www.blafasel.at/
Vienna University Computer Center | Austria