Thread View: news.software.readers
2 messages
2 total messages
Started by skimpy
Wed, 01 Feb 2006 08:26
How to identify text messages and binaries
Author: skimpy
Date: Wed, 01 Feb 2006 08:26
Date: Wed, 01 Feb 2006 08:26
1 lines
792 bytes
792 bytes
isbinary
Re: How to identify text messages and binaries
Author: 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads