Article View: news.software.nntp
Article #57848Re: Response to Jeremy Nixon's anti-yEnc stance
From: Russ Allbery
Date: Tue, 02 Apr 2002 20:53
Date: Tue, 02 Apr 2002 20:53
48 lines
3587 bytes
3587 bytes
In news.software.nntp, J B Moreno <planb@newsreaders.com> writes:
> The point I'm trying to make is that it is /easy/ to implement -- and
> just as importantly is /perceived/ as easy to implement. By no stretch
> of the imagination is MIME perceived as easy to implement -- MIME is for
> people that have years to work on it or dozens of programmers (and
> frequently both).
And the only reason why people think this is because no one ever bothers
to go read the standards.
I've written base64 encoders and decoders; it takes me about an hour. As
long as you can parse message headers, handling the simple case of a
message with application/* content-type is absolutely trivial. To add
multipart handling, the only additional concept you need is MIME boundary
parsing, which just requires reading the specification and thinking for a
little bit.
I've even written an RFC 2047 decoder in the space of an hour or so, and
that's one of those portions of MIME that's both obscure and often
unnecessary to implement.
You could write a working MIME handling system for anything that already
has header parsing in all of about a week, if that. Sure, it wouldn't be
able to support message/external-body or full mailcap handling or MD5
checksum verification in that period of time, but neither is your uuencode
implementation, and furthermore there's no way to *add* that to your
uuencode implementation.
Furthermore, there's almost never any reason for you to go off and
implement your own MIME handling. There are only several *dozen*
libraries out there to help you do it all, for multiple different
programming languages.
This really is not rocket science. I have no idea why people try to make
this so hard. The only part that requires any real thought or design at
all is breaking one's notion of a message as being an unstructured blob of
data, which is an assumption that you have to break *anyway* if you want
to do *anything* sane with rich content, and that includes uuencode and
yEnc. Unless you break that assumption, your uuencode and yEnc parsers
won't be worth using either.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<yly9g5bz5p.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mailReferences:
<8p8n8.31174$7b.2840208@bin7.nnrp.aus1.giganews.com> <010420022329540211%planb@newsreaders.com> <1017726351.740953@ok-corral.gunslinger.net> <020420020222111921%planb@newsreaders.com> <1017735948.191914@ok-corral.gunslinger.net> <020420021426164951%planb@newsreaders.com>Show Full Headers
Complete Article Headers
Message-ID: <yly9g5bz5p.fsf@windlord.stanford.edu> Subject: Re: Response to Jeremy Nixon's anti-yEnc stance Date: Tue, 02 Apr 2002 12:53:22 -0800 From: Russ Allbery <rra@stanford.edu> References: <8p8n8.31174$7b.2840208@bin7.nnrp.aus1.giganews.com> <010420022329540211%planb@newsreaders.com> <1017726351.740953@ok-corral.gunslinger.net> <020420020222111921%planb@newsreaders.com> <1017735948.191914@ok-corral.gunslinger.net> <020420021426164951%planb@newsreaders.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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 47 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1017780802 10893 171.64.13.23 (2 Apr 2002 20:53:22 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.090005 (Oort Gnus v0.05) XEmacs/21.4 (Common Lisp, sparc-sun-solaris2.6) Cancel-Lock: sha1:BzKePCzf2VqeIItrt7QRC2igajk=