Article View: news.software.readers
Article #86188Re: How to recognize MIDs?
From: Curt Welch
Date: Thu, 25 Oct 2001 14:09
Date: Thu, 25 Oct 2001 14:09
28 lines
2268 bytes
2268 bytes
JanC <janc_removethis@digibel.org> wrote: > in <news:9r7fpp.3vs8s2v.1@kici.mici.miau>, kocurek wrote: > > > I'm just wondering... How is Xnews recognizing if it's dealing with > > an e-mail address or Message-ID? What's the algorithm? > > I don't know but... > > > It works perfectly! > > Not always :-( > (To be honest: I think that would be impossible) I wrote the code for NewsReader.Com which tries to find the message-ids and e-mail addresses in the text. There's no simple way to do it and you can't get it right all the time. Message-IDs tend to look different than e-mail addresses so you just collect a large test set and start writting code until all the examples in your test case work correctly. You can also use the context to help such as when it's preceeded with a "Messge-ID:" label or a news: label etc. You end up having to hard code a few special e-mail address that tend to look like message-ids and hard code a few well known message-ids that tend to look like e-mail addresses. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20011025100942.250$RD@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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.onemain.com!feed1.onemain.com!feed1.newsreader.com!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<9r7fpp.3vs8s2v.1@kici.mici.miau> <Xns91457AF54E25JanC@195.130.132.65>Show Full Headers
Complete Article Headers
Message-ID: <20011025100942.250$RD@newsreader.com>
Subject: Re: How to recognize MIDs?
Date: Thu, 25 Oct 2001 14:09:42 +0000
From: curt@kcwc.com (Curt Welch)
References: <9r7fpp.3vs8s2v.1@kici.mici.miau> <Xns91457AF54E25JanC@195.130.132.65>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.onemain.com!feed1.onemain.com!feed1.newsreader.com!feed2.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.readers
X-Trace: NewsReader.Com mpWga@8GXxjIGfp8N_MkQ1pFmR1NzDUWf+fcfRAllbDlQ@cA
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-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 27