Article View: news.software.readers
Article #179990Re: How to identify text messages and binaries
From: Jamie
Date: Thu, 02 Feb 2006 18:15
Date: Thu, 02 Feb 2006 18:15
45 lines
2457 bytes
2457 bytes
In: <43e0709b$0$6650$8fcfb975@news.wanadoo.fr>, skimpy wrote: >protocol but i have a problem for identifying the kind of the message : >for example, when i select a group like alt.binaries.yyyyy, the >messages attached to this newsgroup can be text message or binaries. >Unfortunately, the header "content-type" is not mandatory and it's >difficult for me to understand how i can identify the message (text, >image, binary) ? It is a hack. Whats worse is messages like this: Subject: Something A MP3 (1/3) "foo.mp3" (2/3) Subject: Something B MP3 (2/3) "foo.mp3" (1/3) ... I've found messages like that and have been attempting to detect. Subject: Something [2/3] MIME messages are the worst. Best you can do is check for the ([0-9]+/[0-9]+) subjects (I like to use [0-9] instead of \d to prevent negative numbers from matching) >I have tried to download the body of a message and at the beginning i >have found the line : >=ybegin > >Is there a way to perform this operation (Xover only returns the fields >described in overview.fmt) ? For example, get the n first bytes of the >body in order to analyze it ? Do you know where i can find >documentations ? Nope. NNTP either gives you the body, the head or the full article. But then, this is part of the fun. :-) Jamie -- http://www.geniegate.com Custom web programming guhzo_42@lnubb.pbz (rot13) User Management Solutions
Technical Details
Message-ID:
<Lucy113890379136280xd88c28@localhost>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mailReferences:
<43e0709b$0$6650$8fcfb975@news.wanadoo.fr>Show Full Headers
Complete Article Headers
Message-ID: <Lucy113890379136280xd88c28@localhost> Subject: Re: How to identify text messages and binaries Date: Thu, 02 Feb 2006 18:15:53 GMT From: nospam@geniegate.com (Jamie) References: <43e0709b$0$6650$8fcfb975@news.wanadoo.fr> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail User-Agent: Lucy - http://www.geniegate.com/other/lucy/ Newsgroups: news.software.readers Lines: 45 NNTP-Posting-Host: 12.218.20.141 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1138904153 12.218.20.141 (Thu, 02 Feb 2006 18:15:53 GMT) NNTP-Posting-Date: Thu, 02 Feb 2006 18:15:53 GMT Organization: AT&T ASP.att.net