Article View: news.software.nntp
Article #46570Re: uuencoded text attachments rejected
From: Russ Allbery
Date: Wed, 24 May 2000 00:00
Date: Wed, 24 May 2000 00:00
42 lines
2598 bytes
2598 bytes
Colin Sarsfield <colin.sarsfield@usa.net> writes: > Yes, I agree. I should have been clearer. I was wondering what range > of ASCII characters is considered a "text" file. Obviously, anything > over 127 is 8 bits and needs encoding. I don't find that obvious at all. Most news clients can handle 8-bit character sets just fine provided that they're properly labelled. The only text that should generally ever be encoded is text containing unprintable control characters. > How about characters 0-7, 11-12, & 14-31 ? Do they qualify as text? No. I would recommend using quoted-printable if you have a few of those characters in the text and base64 encoding if you have a lot of them. In both cases, proper MIME labelling is vital. You should also consider the possibility that the occurance of any such characters may be by accident; I'd strongly recommend not just encoding the text but instead prompting the person first to see if they're sure they want to post something containing control characters. I would never recommend using uuencode for any new application. > Also, I was thinking that uuencoding files with lines longer than 80 > characters would preserve line endings (useful for source code, > esp. languages like python). Just posting them with long lines will preserve line endings just fine. News servers and clients should be able to handle lines of arbitrary length in the body and have no business rewrapping lines outside of a news reader explicitly configured to do that (and should preferrably obey format=filled when possible). > And what about text files with unix or mac line ending conventions (I > assume these should be translated to the netnews CRLF pair)? Yup. -- Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Technical Details
Message-ID:
<ylog5vtowv.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<siojuuko150@corp.supernews.com> <siojuuko150@corp.supernews.com> <959215204.43954@news.netscum.dk> <sioungc6o1169@corp.supernews.com>Show Full Headers
Complete Article Headers
Message-ID: <ylog5vtowv.fsf@windlord.stanford.edu> Subject: Re: uuencoded text attachments rejected Date: Wed, 24 May 2000 00:00:00 +0000 From: Russ Allbery <rra@stanford.edu> References: <siojuuko150@corp.supernews.com> <siojuuko150@corp.supernews.com> <959215204.43954@news.netscum.dk> <sioungc6o1169@corp.supernews.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 626973729 Content-Type: text/plain; charset=us-ascii Organization: The Eyrie Mime-Version: 1.0 User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne) Newsgroups: news.software.nntp