Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII

Liste des GroupesRevenir à cu shell 
Sujet : Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII
De : * (at) *nospam* eli.users.panix.com (Eli the Bearded)
Groupes : comp.unix.shell
Date : 05. May 2025, 00:28:55
Autres entêtes
Organisation : Some absurd concept
Message-ID : <eli$2505041904@qaz.wtf>
References : 1 2
User-Agent : Vectrex rn 2.1 (beta)
In comp.unix.shell, Lew Pitcher  <lew.pitcher@digitalfreehold.ca> wrote:
On Sun, 04 May 2025 18:15:38 +0000, Kenny McCormack wrote:
I have a string like (this was the "From" address of an email I recently received):
    =?utf-8?B?UGhpbGxpcCBHw7xudGVy?= <s69pguen@uni-bonn.de>

This is called a "MIME word" or "MIME encoded word" Mail headers are
supposed to be 7-bit clean even when mail bodies can have 8-bit
encodings. MIME words exist to put quoted-printable and base64 in
headers.

       =?utf-8?B?UGhpbGxpcCBHw7xudGVy?=
         ^^^^^ | ^^^^^^^^^^^^^^^^^^^^
       Charset | Content
               |
       Encoding: "B" for base64 "Q" for quoted-printable.

:r! echo UGhpbGxpcCBHw7xudGVy | base64 -d
Phillip Günter

    TF-8?q?They’re_telling_us_something_about_something_ok?

That one is rather mangled. It doesn't follow the =?%s?%c?%s?= format.
It also has a high-bit character in the content. But it does show the
quirk of MIME word quoted-printable: underscores used for spaces.

My question is: Is there a (Unix/Linux) tool that will reliably fix this?
I.e. convert the binary glop format into the desired, pure ASCII, format.

Your mail program should. I have seen Python and Perl libraries for
decoding, too. Knowing the name should help you find them.

What you are looking at is the "punycode"[1] expression of a
non-ASCII character sequence.

No. Punycode is a entirely different coding used to put highbit content
in domain names (DNS). It is not base64 based.

https://en.wikipedia.org/wiki/MIME#Encoded-Word
https://en.wikipedia.org/wiki/Punycode

As an example "Günter.com" encodes in Punycode as: xn--Gnter-kva.com

Someone has that registered, but it is blank in my browser.

Elijah
------
thinks Günter probably likes his name with the accent and not "pure ASCII"

Date Sujet#  Auteur
4 May 25 * How to convert <binaryGlowMixedWithASCII> to pure ASCII25Kenny McCormack
4 May 25 +* Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII6Lew Pitcher
4 May 25 i+* Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII3Kenny McCormack
4 May 25 ii`* Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII2John-Paul Stewart
4 May 25 ii `- Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII1Kenny McCormack
5 May 25 i`* Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII2Eli the Bearded
5 May 25 i `- Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII1Janis Papanagnou
12 May 25 `* Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII18Chuck Martin
12 May 25  `* Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII17Kenny McCormack
12 May 25   `* Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII16Nuno Silva
12 May 25    +* Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII14Kenny McCormack
12 May 25    i`* Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII13Chris Elvidge
14 May 25    i `* Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII12Brian Patrie
14 May 25    i  `* Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII11Chris Elvidge
14 May 25    i   `* Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII10Kaz Kylheku
14 May 25    i    +* Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII7Janis Papanagnou
15 May 25    i    i`* Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII6Alexis
15 May 25    i    i +- Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII1Janis Papanagnou
21 May 25    i    i `* Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII4Lars Poulsen
22 May 25    i    i  `* Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII3Lawrence D'Oliveiro
22 May 25    i    i   +- Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII1Kaz Kylheku
22 May 25    i    i   `- Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII1Keith Thompson
15 May 25    i    +- Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII1Brian Patrie
15 May 25    i    `- Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII1Geoff Clare
12 May 25    `- Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII1Eli the Bearded

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal