Article View: news.software.nntp
Article #57994Re: A better way to post binaries
From: Juergen Helbing
Date: Mon, 08 Apr 2002 07:33
Date: Mon, 08 Apr 2002 07:33
48 lines
2612 bytes
2612 bytes
Jeremy <jeremy@exit109.com> wrote: >Klaas <spamhole@klaas.ca> wrote: > >> Right. I took from your spec that the yEnc meta lines were not to be >> included in the body, but if defined as part of the CTE there isn't >> harm in leaving them in. > >After discussion here I was pretty well convinced that it was the way >to go. > >As for harm, now that I'm actually writing the code, I am realizing >what an enormous pain in the ass it is to have to include those >stupid headers in the encoded data, because it makes it essentially >impossible to implement encoding as a standalone module processing >a datastream. I now *really* want to get rid of those stupid things >the very minute they aren't absolutely necessary anymore. I dont understand this, could you please explain ? You need the information already for creating the MIME headers - so passing them to the "stand alone module" would simply be a data structure which contains all the necessary data - which has been already necessary for the MIME header creation: struct FILEPART int encodingtype // 1: Base64, 2:uuEnc, 3:BinHex, 4:yEnc, .... unsigned char * data // pointer to the actual data unsigned char * des_buffer int part int total long int offset // 0... totalsize-1 long int partsize long int totalsize char * name int crcflag // 0: not used, 1: already calculated unsigned int32 PartCrc unsigned int32 TotalCrc For every type of existing (and future) encoding API will would need such a data structure which is passed as a parameter. So where a I wrong here ? -- Juergen
Technical Details
Message-ID:
<27339.842203@archiver.winews.net>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!paloalto-snf1.gtei.net!paloalto-snh1.gtei.net!news.gtei.net!news.alt.net!usenetReferences:
<1017777829.201228@ok-corral.gunslinger.net> <a8grrp$s0025$1@ID-26705.news.dfncis.de> <1017904608.263036@ok-corral.gunslinger.net> <a8m05q$t53tq$1@ID-26705.news.dfncis.de> <1018133305.356462@ok-corral.gunslinger.net>Show Full Headers
Complete Article Headers
Message-ID: <27339.842203@archiver.winews.net> Subject: Re: A better way to post binaries Date: Mon, 08 Apr 2002 07:33:27 +0000 From: archiver@i3w.com (Juergen Helbing) References: <1017777829.201228@ok-corral.gunslinger.net> <a8grrp$s0025$1@ID-26705.news.dfncis.de> <1017904608.263036@ok-corral.gunslinger.net> <a8m05q$t53tq$1@ID-26705.news.dfncis.de> <1018133305.356462@ok-corral.gunslinger.net> 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!paloalto-snf1.gtei.net!paloalto-snh1.gtei.net!news.gtei.net!news.alt.net!usenet Newsgroups: news.software.nntp Organization: Altopia Corp. - Usenet Access - http://www.altopia.com Lines: 47 X-Newsreader: MyNews