Article View: news.software.readers
Article #39040Re: Appending signatures - the algorithm (Re: What's in a signature?)
From: Curt Welch
Date: Mon, 23 Feb 1998 00:00
Date: Mon, 23 Feb 1998 00:00
61 lines
3478 bytes
3478 bytes
curtis_whalen+usenet@geocities.com (Curtis [Jewell] Whalen) wrote: > (BTW, programmers, just look for '\n-- ' not '\n-- \n' - best to look for > the least you need) No, that's very wrong. The pattern of a line containing only dash dash space was selected because it's very unlikley to happen some were else in an article. A line which simply begins with dash dash space will happen much too frequently in other articles. A quick grep of my news spool produced thousands of cases before I stopped the search. Here are three examples from soc.culture.british (the third news group searched): in <34f06920.539195@news.xara.com>: > "The only language [the Japanese] seem to understand is the one we > have been using to bombard them. When you have to deal with a beast > you have to treat him as a beast." > -- President Harry Truman, 11 August 1945, justifying the attacks on > Hiroshima and Nagasaki > > "President Clinton said today that the United States owed Japan no > apology for dropping atomic bombs on Hiroshima and Nagasaki at the end > of World War Two, and that President Harry S. Truman had made the > right decision to use the bombs." > -- Slick Willie confirms that he'd do it just the same, cited in > Reuters, 7 April 1995 and in <19980221215900.QAA22674@ladder02.news.aol.com>: > that the Iraqi government doesn't want the embargo lifted? The U.N. > resolution doesn't authorize prying into every aspect of Iraq's military > -- only into its weapons of mass destruction. and in <34F17145.73D6@citynet.net>: > -- New York? Don't you mean Las Vegas here or has there been a follow up > arrest? > -- Curtis > email: curtis underline whalen plus email at geocities dot com A lot of people make the same mistake as you do (adding their name or other info after the dash dash space), but I suspect most newsreaders that look for sigs will not correctly "see" yours. My newsreader doesn't. Another mistake people make is to add more than one space after the --. Quite a few of those showed up in my search. In my code, I actuall allow 1 or more spaces after the double dash so those cases don't cause problems for me. It wouldn't be completely unreasonable to search for "^-- " in the last few lines of the article if the correct type of sig marker wasn't found. But that leads people into the false impression that this format is valid everywhere when it isn't, so allowing that in a newsreader might only make matters worse instead of better. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<19980223095336.375$dz@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!not-for-mailReferences:
<6cqnjq$nph@enews1.newsguy.com>Show Full Headers
Complete Article Headers
Message-ID: <19980223095336.375$dz@newsreader.com>
Subject: Re: Appending signatures - the algorithm (Re: What's in a signature?)
Date: Mon, 23 Feb 1998 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <6cqnjq$nph@enews1.newsguy.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!not-for-mail
X-Deja-AN: 327847145
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/
X-User: Curt@NewsReader.Com
Organization: KCW Consulting
Newsgroups: news.software.readers