Article View: news.software.nntp
Article #68549Re: yEnc decoding question
From: Curt Welch
Date: Sat, 13 Mar 2004 05:09
Date: Sat, 13 Mar 2004 05:09
33 lines
2622 bytes
2622 bytes
Gord <gord_muir@nospam_hotmail.com> wrote: > Hi all > > Thanks to Curt I have greatly improved the filtering of Usenet > messages going into my database. > > I'm currently working on yEnc decoding of multi part binaries and have > run into a snag. > > At first I simply wrote the information into a text file and attempted > to decode that. Treating binary information as text doesn't work too > well and I've switched to simply grabbing the bytes as they come in > and doing a binary write out to a single text file. > > Now all the information is correctly in the text file but there appear > to be control characters messing with the formatting. All the > information appears to be tabbed and there are many broken lines. > > Anyone have experience dealing with this? yEnc files are almost pure binary. Don't try to look at them, it will hurt your eyes. :) If you write a program to decode the data, you don't need to "see" the text file. But, as you said, if you use read and write routines that think they are working with a text file, it might corrupt the data. You need to treat a yEnc article as if it were a pure binary file. They just aren't as easy to work with as uuencode articles because of this fact. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20040313000957.095$sb@newsreader.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!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!petbe.visi.com!news.octanews.net!feed5.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<n3b740p7nioh4h8c89crsbu05risnmf9hb@4ax.com> <87ishoz18r.fsf@windlord.stanford.edu> <ohqe40pf99idk7h03k14ldrkju8mhc6f2s@4ax.com> <20040304154419.726$DF@newsreader.com> <j9o150lbrn61b8mp0phu8f7v573ik40mbu@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <20040313000957.095$sb@newsreader.com>
Subject: Re: yEnc decoding question
Date: Sat, 13 Mar 2004 05:09:57 +0000
From: curt@kcwc.com (Curt Welch)
References: <n3b740p7nioh4h8c89crsbu05risnmf9hb@4ax.com> <87ishoz18r.fsf@windlord.stanford.edu> <ohqe40pf99idk7h03k14ldrkju8mhc6f2s@4ax.com> <20040304154419.726$DF@newsreader.com> <j9o150lbrn61b8mp0phu8f7v573ik40mbu@4ax.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!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!zeus.visi.com!news-out.visi.com!petbe.visi.com!news.octanews.net!feed5.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com r/Zmlm0QVLpm34@dd4L8chkAuYCNLGJaGVsTjEuxEKpsajg7Wo
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 32