linux-kernel-digest and ISO-8859-1

jelle-linux-kernel-digest@flying.demon.nl
Thu, 25 Mar 1999 03:05:12 +0100 (CET)


This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
Send mail to mime@docserver.cac.washington.edu for more info.

--720384-60041378-922327512=:2094
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hello All,

I'm on the linux-kernel-digest, and use 'splitdigest' to convert the
digests back to regular mails, which I read with pine.

Lately I started seeing a lot of digests where no From: line could be
found by pine in the messages.

Turns out that it has to do with the character set (see header excerpt
below). Apparently, this X-Warning results in character replacement.
Specifically, "=" becomes "=3D", some other characters are replaced in a
similar way (the "F" from "From:" too...), and soft line breaks are lines
ending with "=".

I wrote the attached small proggy to deal with this, and inserted it in
my .qmail-linux-kernel-digest script and it seems to do the jobs just
fine.

So, if any of you experience the same problem, you are welcome to give it
a try. It's a simple stdin->stdout program that replaces the "=3D" and
related sequences.

Cya,
Jelle.

..................................................................
Received: from nic.funet.fi ([128.214.248.6]) by punt-1.mail.nl.demon.net
id aa1125533; 22 Mar 99 23:48 GMT
X-Warning: Original message contained 8-bit characters, however during
the SMTP transport session the receiving system was unable to
announce capability of receiving 8-bit SMTP (RFC 1651-1653),
and as this message does not have MIME headers (RFC 2045-2049)
to enable encoding change, we had very little choices.
X-Warning: We ASSUME it is less harmful to add the MIME headers, and
convert the text to Quoted-Printable, than not to do so,
and to strip the message to 7-bits.. (RFC 1428 Appendix A)
X-Warning: We don't know what character set the user used, thus we had to
write these MIME-headers with our local system default value.
MIME-Version: 1.0
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Type: TEXT/PLAIN; charset=ISO-8859-1
.......................................................................

--720384-60041378-922327512=:2094
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="kerneldigest_filter.c"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.LNX.4.10.9903250305120.2094@zap.zap>
Content-Description:
Content-Disposition: attachment; filename="kerneldigest_filter.c"

I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3RkbGliLmg+DQoNCmNo
YXIgKmhleHRyaW5nPXsiMDEyMzQ1Njc4OUFCQ0RFRiJ9Ow0KDQptYWluKCkN
CnsNCiB3aGlsZSAoIWZlb2Yoc3RkaW4pKQ0KIHsNCiAgaW50IGM7DQogIGMg
PSBnZXRjaGFyKCk7DQogIGlmICghZmVvZihzdGRpbikpDQogIHsNCiAgIGlm
IChjPT0nPScpDQogICB7DQogICAgaW50IGgxLGgyOw0KICAgIGgxID0gKGxv
bmcpc3RyY2hyKGhleHRyaW5nLHRvdXBwZXIoZ2V0Y2hhcigpKSkgLSAobG9u
ZyloZXh0cmluZzsNCiAgICBoMiA9IChsb25nKXN0cmNocihoZXh0cmluZyx0
b3VwcGVyKGdldGNoYXIoKSkpIC0gKGxvbmcpaGV4dHJpbmc7DQogICAgcHV0
Y2hhcigoaDEqMTYpK2gyKTsNCiAgIH0gZWxzZSBwdXRjaGFyKGMpOw0KICB9
DQogfQ0KfQ0K
--720384-60041378-922327512=:2094--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/