Article View: news.software.nntp
Article #74612Re: How to find all the parts of a multipart message?
From: Morten Guldager
Date: Mon, 01 Jan 2007 20:13
Date: Mon, 01 Jan 2007 20:13
34 lines
2295 bytes
2295 bytes
2007-01-01 Ikke wrote > > I'd like to start writing my own NNTP client in a few days, so I've had a > quick look at the basic NNTP RFC stuff to get to know the protocol. > > Easy enough so far, Sure. NNTP is so sweet and simple! Just remember to handle lines starting with a . propperly... It's an easy one to forget, but you will then end up with corrupt files. > yet something still puzzles me: multipart messages. > > For instance, someone posts a message existing of 4 parts - how do I know > those parts belong together? Surely there must be an easy way to identify > related messages through the information in the headers? Hmm, don't think so. Usually you look at the subject line. Problem is that there is no standard way for encoding information in the subject. (not that I know at least) I think you are going to impelment a bunch of regexp's, and be prepared to add more as new mass posting software arrives at the sceene. Maybe you want to split the task in two, a xover-reader which updates a local database with the xover info you found, and a article fetcher which either can read articles ind the database, og just go on from a NZB file. Which platform and language are you using? /Morten %-)
Technical Details
Message-ID:
<slrnepiqs4.3gt.Morten.Guldager@linuxine.mogul.dk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!feeder.news-service.com!newsfeed1.uni2.dk!news.get2net.dk.POSTED!53ab2750!not-for-mailReferences:
<Xns98ABD53F32078ikkehierbe@195.130.132.70>Show Full Headers
Complete Article Headers
Message-ID: <slrnepiqs4.3gt.Morten.Guldager@linuxine.mogul.dk> Subject: Re: How to find all the parts of a multipart message? Date: Mon, 01 Jan 2007 20:13:56 GMT From: Morten Guldager <Morten.Guldager@gmail.com> References: <Xns98ABD53F32078ikkehierbe@195.130.132.70> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!feeder.news-service.com!newsfeed1.uni2.dk!news.get2net.dk.POSTED!53ab2750!not-for-mail Newsgroups: news.software.nntp User-Agent: slrn/0.9.8.0 (Linux) Lines: 34 NNTP-Posting-Host: 83.74.0.130 X-Complaints-To: abuse-dk@tele2.com X-Trace: news.get2net.dk 1167682436 83.74.0.130 (Mon, 01 Jan 2007 21:13:56 CET) NNTP-Posting-Date: Mon, 01 Jan 2007 21:13:56 CET Organization: Tele2 Internet Kunde