Article View: news.software.readers
Article #54873Re: Detecting Binary Attachments
From: Curt Welch
Date: Sat, 04 Dec 1999 00:00
Date: Sat, 04 Dec 1999 00:00
56 lines
2880 bytes
2880 bytes
nolanw@iglou.com (Nolan) wrote: > QUESTION: > > I have been playing around with the NNTP protocol some and > there are 2 things that I have yet to figure out. > > 1. How do you know if an article has a uuencoded binary > attachment? I assumed that there would be a header > field to indicate this, but that doesn't appear to > be the case. No header. You have to read the article and look for the begin line. But then there's Mime encoded articles as well. Much more complex. Takes lots of code to do a good job on all the various formats people might use on Usenet. > 2. When a large binary attachment is split into multiple > articles, how do you determine which articles are > needed to re-assemble the complete attachment? A lot of magic. No simple solutions. Mime has a multipart standard but very view articles posted to Usenet use it. In general, you match up parts by looking at the subject and author. Some newsreaders don't even try. They just let the user find and hightlight all the parts. > Is there a public domain or freeware library that I can > call to download a binary attachment for a given article? Not that I know of, but who knows. > I'd like to be able to pass an article ID to a function > and have that function download and decode the binary > attachment if the entire attachement is included in that > message. You know articles can have multiple attachments as well though it's not very common. > If the attachment spans multiple articles, I'd > like the function (or another one) to have the ability > to determine which articles are needed to decode the > attachment and then download all the needed articles and > decode the attachment. DOES THIS EXIST? > > If not, is there a VERY SIMPLE news reader with source > code that implements those 2 pieces of functionality? Can't help you there. I just wrote all my own code. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<19991204174320.149$3y@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.readers.mbox.zip!not-for-mailReferences:
<38498f0c.19078461@news.iglou.com>Show Full Headers
Complete Article Headers
Message-ID: <19991204174320.149$3y@newsreader.com>
Subject: Re: Detecting Binary Attachments
Date: Sat, 04 Dec 1999 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <38498f0c.19078461@news.iglou.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 556685742
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-User: Curt@NewsReader.Com
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.readers