🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #268385

Re: Question: Do Winston's headers cause charset issues for anyone else?

#268385
From: Maria Sophia
Date: Thu, 12 Mar 2026 02:36
160 lines
8530 bytes
Carlos E.R. wrote:
> Question: 
> Do Winston's headers cause charset issues for anyone else? 
> Or just me?
> 
> I am trying to understand something about how different newsreaders handle
> malformed headers because my home-grown "newsreader" has "problems" when
> responding to Winston's posts due to the way he formats his "FROM" header.
>  From: ...w¡ñ§±¤ñ <winstonmvp@gmail.com>
> 
> That line apparently contains non-ASCII characters in the display name:
>  ¡ (U+00A1)
>  ñ (U+00F1)
>  § (U+00A7)
>  ± (U+00B1)
>  ¤ (U+00A4)
>  another ñ (U+00F1)
> 
> When I reply to posts from Winston (the ones where his display name
> contains characters like "w!n§±¤n"), my own outgoing article sometimes gets
> corrupted on the way out. The corruption seems to happen, I think, because
> Winston's display name or headers contain raw 8-bit characters that are not
> valid UTF-8 and not MIME-encoded.
> 
> Usenet (like email) requires that all headers must be pure ASCII unless
> they use MIME encoded-words, which means Winston's headers maybe should be
>  From: =?UTF-8?Q?w=C2=A1=C3=B1=C2=A7=C2=B1=C2=A4=C3=B1?= <winstonmvp@gmail.com>
> This is fully legal for Usenet and will not trigger nntp server rewrites.
> 
> I wrote my own newsreader so I manually enforce strict 7-bit ASCII in my
> outgoing posts by the use of an extensive shortcuts.xml conversion macro.
> 
> However, when Winston's illegal header bytes get copied into my attribution
> line or reply headers, some NNTP servers rewrite the article to "fix" the
> mismatch, which ends up mangling my otherwise clean pure-7-bit ASCII text.
> 
> My question of others, since you're using "normal" newsreaders, is:
>  Q: Do any of you see charset or encoding issues when replying to Winston's
>     posts, or do your newsreaders and servers silently fix the illegal 
>     bytes so you never notice?
> 
> I am trying to determine whether this is something unique to my strict
> ASCII workflow, or whether other clients also have to deal with it.
> 
> Thanks for any insight.
> 
> Note that I'm implementing the following shortcuts.xml to fix this, 
> but nobody else will be using that conversion so it's just an N.B.
> 
> <!-- Remove Unicode garbage from quoted Usenet 'X wrote:' lines --> 
> <!-- (e.g., Winston's illegal headers) so my posts stay 7-bit clean -->
>  <ReplaceRE Find="[^\x00-\x7F]" Replace="" />
>  <ReplaceRE Find="^.*wrote:" Replace="Winston wrote:" />
>  <ReplaceRE Find="^(References|In-Reply-To):.*" Replace="" />
> -- 
> When you write your own newsreader, you have to do everything yourself.

Carlos E.R. wrote:
> On 2026-03-12 01:32, Maria Sophia wrote:
>> Question:
>> Do Winston's headers cause charset issues for anyone else?
>> Or just me?


> No.
> 
> Asking TB to produce the raw message, it comes as
> 
> From: =?UTF-8?B?Li4ud8Khw7HCp8KxwqTDsQ==?= <...>
> 
> Which is legal, obviously. (Reasoning: if TB does it, then it is legal)
> 
> Message-ID: <10obf37$3koaa$1@dont-email.me>
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8; format=flowed
> Content-Transfer-Encoding: 8bit
> 
> User-Agent: Mozilla Thunderbird
> Content-Language: en-US
> 
> 
> 
> Looking at the stored file in my computer:
> 
> 00000070 50 4F 53 54 │ 45 44 21 6E │ 6F 74 2D 66 │ 6F 72 2D 6D │ 61 69 6C 0A │ 46 72 6F 6D │ 3A 20 3D 3F  POSTED!not-for-mail.From: =?
> 0000008C 55 54 46 2D │ 38 3F 42 3F │ 4C 69 34 75 │ 64 38 4B 68 │ 77 37 48 43 │ 70 38 4B 78 │ 77 71 54 44  UTF-8?B?Li4ud8Khw7HCp8KxwqTD
> 000000A8 73 51 3D 3D │ 3F 3D 20 3C │ 77 69 6E 73 │ 74 6F 6E 6D │ 76 70 40 67 │ 6D 61 69 6C │ 2E 63 6F 6D  sQ==?= <..........@gmail.com
> 000000C4 3E 0A 4E 65 │ 77 73 67 72 │ 6F 75 70 73 │ 3A 20 61 6C │ 74 2E 63 6F │ 6D 70 2E 6F │ 73 2E 77 69  >.Newsgroups: alt.comp.os.wi
> 
> Which has been processed by Leafnode, without any problem.

Hi Carlos,

Thanks for helping out as I'm as aware as anyone how dangerous it is to
answer any question on Usenet that is out of the norm for most people.

My ASCII-only home-grown newsreader is likely proper for the original 
RFCs, but it is just as likely outdated when it comes to newer readers.

AFAICT, Winston’s display name appears to me to contain raw 8-bit bytes
 U+00A1 U+00F1 U+00A7 U+00B1 U+00A4 U+00F1
Which, as far as I'm aware, are illegal in RFC-compliant headers 
unless they're MIME encoded where, apparently, Thunderbird, Leafnode, 
and probably most modern servers automatically rewrite this into:
 =?UTF-8?B?Li4ud8Khw7HCp8KxwqTDsQ==?=
Which is a valid MIME encoded word.

But my home-grown newsreader does not rewrite it, of course.
So it passes the raw bytes through.

When I quote Winston, the reputed illegal bytes enter my own articles.
 w¡ñ§±¤ñ wrote:
Since those bytes don't appear to be ascii or UTF-8 or Mime encoded,
my outgoing article contains a header/body character-set mismatch.

I'm not sure what NNTP servers are doing, but apparently some NNTP servers
try to "fix" that apparently mismatch by rewriting my article charsets.

Apparently, based on your kind response, Thunderbird users never see this
because TB apparently rewrites Winston’s header before quoting it.

By doing that, TB always emits valid UTF-8, which means downstream NNTP
servers see a valid MIME-encoded header and do nothing about it.

So you end up seeing:
 From: =?UTF-8?B?Li4ud8Khw7HCp8KxwqTDsQ==?=
Which your NNTP server accepts without modification.

I think that implies your TB & Leafnode newsreaders, and likely slrn, Pan,
Gnus, Outlook Express, etc., automatically sanitize illegal header bytes
before quoting them. 

Drat. 
My home-grown newsreader is expecting the original Usenet rule to hold:
 All headers must be 7-bit ASCII unless MIME-encoded.
Whereas, modern newsreader clients seem to be enforcing a more lax rule:
 All headers must be valid UTF-8 or MIME-encoded.
Winston's posts apparently violate rules, but modern clients fix them.

It's unfortunate that my workflow is strict enough to expose the problem.
As an aside, I'm working on fixing it on my side, but it's not easy.

<ReplaceRE Find="[^\x00-\x7F]" Replace="" />
<ReplaceRE Find="^.*wrote:"
Replace="Winston wrote:" />

 Newsgroups: alt.comp.os.windows-10,alt.comp.os.windows-11,alt.comp.microsoft.windows
 Subject: Re: Tutorial: Notepad++ shortcuts.xml macro converts unicode to the 95-keyboard ASCII characters
 Date: Wed, 11 Mar 2026 17:19:11 -0700
 Message-ID: <10ot0q0$1110$1@nnrp.usenet.blueworldhosting.com>

In summary, I guess it's only a problem for me, since my home-grown
newsreader (which is really mostly just telnet, stunnel & gVim) requires a
post-processing step of the attribute line to make it 7-bit ASCII.

Nothing yet in my newsreader chain rewrites illegal header bytes or 
MIME-encodes display names, or normalizes UTF-8 in order to sanitize
attribution lines in order to comply with RFC 2047 encoded-word rules.
-- 
When you write your own newsreader, you have to consider the oddest things.
Technical Details
Message-ID: <10ot8s1$u9p$1@nnrp.usenet.blueworldhosting.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED!not-for-mail
References: <10ot1jr$5it$1@nnrp.usenet.blueworldhosting.com> <eag98mxlmv.ln2@Telcontar.valinor>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nnrp.usenet.blueworldhosting.com!.POSTED!not-for-mail
From: Maria Sophia <mariasophia@comprehension.com>
Newsgroups: alt.comp.os.windows-10,news.software.readers,alt.comp.software.thunderbird
Subject: Re: Question: Do Winston's headers cause charset issues for anyone else?
Date: Wed, 11 Mar 2026 19:36:48 -0700
Organization: BWH Usenet Archive (https://usenet.blueworldhosting.com)
Message-ID: <10ot8s1$u9p$1@nnrp.usenet.blueworldhosting.com>
References: <10ot1jr$5it$1@nnrp.usenet.blueworldhosting.com> <eag98mxlmv.ln2@Telcontar.valinor>
Reply-To: pusvul@getTjewytR4so+mqe2.invalid
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 12 Mar 2026 02:36:50 -0000 (UTC)
Injection-Info: nnrp.usenet.blueworldhosting.com;
	logging-data="31033"; mail-complaints-to="usenet@blueworldhosting.com"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:g+5bOuB65PIDWgQ9y5hzE/Nc5XM= sha256:/9ybydadaW/otr1vPgeWvT6KniMTm2Gyl8mdglvYy0s=
	sha1:Od3Eiu8Ms2CcQy3WDdUQP/vpAhw= sha256:j/svZI3aIlOehQC/XpEJi5y3EKPSWotRjQKOxo807Gw=
Content-Language: en-GB