On Fri, Jun 3, 2016 at 5:45 AM, Ionel Mugurel Ciobîcă <i.m.ciob...@upcmail.nl> wrote: > On 3-06-2016, at 10h 52'54", Christian Brabandt wrote about "Re: Convert > ascii UTF8 code (in mutt "to:" header) to real UTF8" >> >> An alternative might be qprint (package qprint) >> > > Yes, qprint should do it: > > # echo "Ker=C4=B1ko" | qprint -d > Kerıko > > You just need to deal yourself with the "=?utf-8?Q?" and "?=". > > You can look for alternative programs that understand the RFC 1521 > MIME Quoted-Printable standard. > > Some e-mails will have the name encoded in base64. This will look > maybe like this: > > To: Jeri =?utf-8?B?S2VyxLFrbwo=?= <...> > > You decode those by base64: > > # echo "S2VyxLFrbwo=" | base64 -d > Kerıko > > Again, you need to take care yourself of the "=?utf-8?B?" and "?=". > > > Good luck. > Ionel
Oh great! I'm very happy. Thank you to everyone. So many kind people here. So solution is to use qprint or mmencode, extract the part to pass, and then paste together. My sed talents are not high, but I am sure I can achieve it after some study. I will post a full solution if I achieve it. Kind regards, Xu