Article View: news.software.readers
Article #260567Re: Do we really need mime-version, content-type, and content-transfer-encoding headers?
From: Adam H. Kerman
Date: Thu, 07 Jul 2016 16:46
Date: Thu, 07 Jul 2016 16:46
57 lines
3971 bytes
3971 bytes
Whiskers <catwheezel@operamail.com> wrote: >On 2016-07-06, Henry Jones <henry@example.com> wrote: >>A lot of people have these three headers for text messages. >>1. Mime-Version: 1.0 >>2. Content-Type: text/plain; charset=utf-8; format=flowed >>3. Content-Transfer-Encoding: 7bit >>I ask two basic (fundamental) questions about these three headers. >>First, are they really needed for pure ASCII (US Keyboard) messages? >>Secondly, since I have them removed at the moment, are there any >>repercussions I should be aware of (for US Keyboard text messages)? >In their absence, I think most software will assume that 7-bit ASCII is >meant. But if the machine is configured for non-USA-English use, the >ASCII characters displayed may not be what you expect. This is unlikely >to be a problem with any current operating system - but some people are >using really old or obscure kit. I'm not sure what you mean here. What non-ASCII 7-bit code pages are in widespread use today anywhere? It's never an issue with 8-bit, which as far as I know, are all supersets of ASCII. >My newsreader, slrn, doesn't insert any of those headers unless it >detects that the article I'm posting has UTF-8 characters in it, in >which case it encodes the text accordingly and inserts the headers >needed for other software to decode it properly. It doesn't send any >posts in 'format=flowed' so it never specifies that in a header (but >knows what to do with properly constructed format=flowed incoming >messages). That's not always helpful in a followup. There are multiple problems, as one must deal with BOTH character set AND encoding. If a followup has quotes in it from multiple precursor articles, the original articles could have been in different character sets and have been encoded differently and mistranslated in quote, possibly because the MIME header declarations were wrong or missing. slrn doesn't always know what it's detecting. In my situation, I'm using a remote terminal. The text editor I use in the composer has a different set of environment variables than the remote terminal uses to display the article. I've never been able to figure out what LANG settings to use in the remote terminal, so I have to ignore discrepencies. My local terminal emulation allows me to choose the translation. If absolutely necessary, I can change the translation from one article to the next. When composing, I try to use ASCII whenever possible. >There are many possible 'Content-Type' 'charset' and >'Content-Transfer-Encoding' entries, but some of them should never >appear in text-only usenet posts. So far, the only MIME-Version that >exists is 1.0. MIME is a pain in the ass.
Technical Details
Message-ID:
<nlm11a$tbd$2@news.albasani.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mailReferences:
<nli1e8$hi6$1@news.mixmin.net> <slrnnnt063.acp.catwheezel@ID-107770.user.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <nlm11a$tbd$2@news.albasani.net> Subject: Re: Do we really need mime-version, content-type, and content-transfer-encoding headers? Date: Thu, 07 Jul 2016 16:46:34 +0000 From: "Adam H. Kerman" <ahk@chinet.com> References: <nli1e8$hi6$1@news.mixmin.net> <slrnnnt063.acp.catwheezel@ID-107770.user.individual.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail Newsgroups: news.software.readers Organization: albasani.net Lines: 57 X-Trace: news.albasani.net TqZDnTD2EQPyVpmc6qj2F2b6jCazI3UeLofhg4HkPcdm2eFI0gG6yDrBS9/rXuEEKWjPKab4IC4+m0KbCMHxngArxNx6PqMtBvHjxott8gObH88C5CwTsTf/dl0MWCvq NNTP-Posting-Date: Thu, 7 Jul 2016 16:46:34 +0000 (UTC) Injection-Info: news.albasani.net; logging-data="fd++dtJP5DXVuZiXozc9MGBFD3zYncOSgcnTPBhz28FWd7rUK/OzKrjwaPYeifbIJB555fhUypHp7/IvtbZVHCPDPtYaEOOAdLoOvaeh+l5qOTpn0eTREtw9j/cA07kL"; mail-complaints-to="abuse@albasani.net" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Cancel-Lock: sha1:ffkvKQi/160xs4YPlr86/bgnRLc= X-Received-Body-CRC: 1204402448 X-Received-Bytes: 3900