Article View: news.software.nntp
Article #68682Re: NNTP Programming question - Multi part messages
From: Bill Davidsen
Date: Thu, 18 Mar 2004 19:40
Date: Thu, 18 Mar 2004 19:40
45 lines
2946 bytes
2946 bytes
Gord wrote:
> Ok if we're stuck with subject line guessing thats too bad... but, has
> anyone come up with a decent regular expresssion or algorithm to aid
> with this?
>
> I saw a FAQ on an MP3 group the other day urging people to not use the
> (99/99) standard. Man that would give me headaches.
>
> Gord
>
> On Mon, 01 Mar 2004 13:49:40 -0800, Russ Allbery <rra@stanford.edu>
> wrote:
>
>
>>Gord <gord_muir@nospam_hotmail.com> writes:
>>
>>
>>>I am doing some NNTP programming and I'm having difficulty with a
>>>section that tries to find multi part messages.
>>
>>>If someone posts a large file, whether it is MP3 or MPEG or whatever
>>>it seems we are at the mercy of a non standard subject line in trying
>>>to find all the pieces to join together.
>>
>>Yup.
>>
>>
>>>Am I missing an obvious solution to this. Is there any way to easily
>>>find all the parts of a multi part message?
>>
>>There is, unfortunately, no standard for doing this that is used widely on
>>Usenet. All the code I know of that does this does subject line guessing.
Something like:
if (m!^Subject: .*[[(](\d+/\d+)[])]!) {
($part, $Nparts) = split("/", $1);
# or some such
}
--
bill davidsen (davidsen@darkstar.prodigy.com)
SBC/Prodigy Yorktown Heights NY data center
Project Leader, USENET news
http://newsgroups.news.prodigy.com
Technical Details
Message-ID:
<CWm6c.60219$Lt1.31773@newssvr33.news.prodigy.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!news1.google.com!news.glorb.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr33.news.prodigy.com.POSTED!dd8c8703!not-for-mailReferences:
<n3b740p7nioh4h8c89crsbu05risnmf9hb@4ax.com> <87ishoz18r.fsf@windlord.stanford.edu> <ohqe40pf99idk7h03k14ldrkju8mhc6f2s@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <CWm6c.60219$Lt1.31773@newssvr33.news.prodigy.com> Subject: Re: NNTP Programming question - Multi part messages Date: Thu, 18 Mar 2004 19:40:18 GMT From: Bill Davidsen <davidsen@deathstar.prodigy.com> References: <n3b740p7nioh4h8c89crsbu05risnmf9hb@4ax.com> <87ishoz18r.fsf@windlord.stanford.edu> <ohqe40pf99idk7h03k14ldrkju8mhc6f2s@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!news1.google.com!news.glorb.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr33.news.prodigy.com.POSTED!dd8c8703!not-for-mail User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: news.software.nntp In-Reply-To: <ohqe40pf99idk7h03k14ldrkju8mhc6f2s@4ax.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 44 NNTP-Posting-Host: 207.115.54.37 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr33.news.prodigy.com 1079638818 ST000 207.115.54.37 (Thu, 18 Mar 2004 14:40:18 EST) NNTP-Posting-Date: Thu, 18 Mar 2004 14:40:18 EST Organization: SBC http://yahoo.sbc.com X-UserInfo1: SCSYQN_@FS@US\TYARKXK_@@FBYFRM@OMPUT_FMNJZ]BGIELDVW[AKK[J\]^HVKHG^EWZHBLO^[\NH_AZFWGN^\DHNVMX_DHHX[FSQKBOTS@@BP^]C@RHS_AGDDC[AJM_T[GZNRNZAY]GNCPBDYKOLK^_CZFWPGHZIXW@C[AFKBBQS@E@DAZ]VDFUNTQQ]FN