Article View: alt.free.newsservers
Article #137293Re: Baby Relf is solicitous about his BOM
From: ·Junior·
Date: Sat, 21 Jan 2012 12:01
Date: Sat, 21 Jan 2012 12:01
34 lines
2572 bytes
2572 bytes
Jeff-Relf.Me wrote:
> You'll ·always· impose too many restrictions for my tastes,
> both up (posting) and down (reading), so don't even try.
OK, fine.
> I don't like "encoded words", don't like "quoted printable",
> not fond of "HTML entities", "percent encoding" and the like.
> I simply won't use them, not if I can avoid it ── and I often can.
Just for you, I made a little change. Instead of rejecting BOMs and
other fancy stuff the filter will now just encode a from or subject
header if it finds anything it doesn't like. I'm curious how it will
handle your posts so if you don't mind, give it a try.
Here's the code:
use Encode qw/encode decode/;
if ($hdr{Subject} =~ /[^\x09-\x7F]/) {
$hdr{Subject} = decode('UTF-8', $hdr{Subject});
$hdr{Subject} = encode('MIME-Q', $hdr{Subject});
};
Same for the from header.
When we were talking about Thunderbird, I got the impression that
you didn't mind if a newsreader encoded your headers. Let me know if
I got that correct... and if it works as well as the RELF·BOM.
> Now that the BOMs are at the end, instead of the start,
> it's a less intrusive "wrong charset" indicator.
I left your damn BOM at the end of the subject header.
Technical Details
Message-ID:
<201201211201.UTC.jfe9es$uvl$1@tioat.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!tioat.net!not-for-mailReferences:
<jfc2m5$elf$1@dont-email.me> <201201201602.UTC.jfc37d$alk$1@tioat.net> <jfc3q7$hv7$4@dont-email.me> <201201201621.UTC.jfc4a1$bb5$1@tioat.net> <Jeff-Relf.Me@2012_Jan.20^10.27.am> <201201202006.UTC.jfchfv$er7$1@tioat.net> <Jeff-Relf.Me@2012_Jan.20^1.59.pm>Show Full Headers
Complete Article Headers
Message-ID: <201201211201.UTC.jfe9es$uvl$1@tioat.net> Subject: Re: Baby Relf is solicitous about his BOM Date: Sat, 21 Jan 2012 12:01:32 +0000 From: ·Junior· <invalid@not-for-mail.invalid> References: <jfc2m5$elf$1@dont-email.me> <201201201602.UTC.jfc37d$alk$1@tioat.net> <jfc3q7$hv7$4@dont-email.me> <201201201621.UTC.jfc4a1$bb5$1@tioat.net> <Jeff-Relf.Me@2012_Jan.20^10.27.am> <201201202006.UTC.jfchfv$er7$1@tioat.net> <Jeff-Relf.Me@2012_Jan.20^1.59.pm> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!tioat.net!not-for-mail Newsgroups: alt.free.newsservers Lines: 34 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 21 Jan 2012 12:01:32 +0000 (UTC) Injection-Info: tioat.net; posting-host="13ea0559ba455b06f522618b8370562f"; mail-complaints-to="news_AT_tioat_DOT_net" User-Agent: slrn/pre1.0.0-26 (Linux) X-Original-Bytes: 2321