Article View: news.software.readers
Article #39005Re: Appending signatures - the algorithm (Re: What's in a signature?)
From: John Moreno
Date: Sun, 22 Feb 1998 00:00
Date: Sun, 22 Feb 1998 00:00
54 lines
3798 bytes
3798 bytes
Greg Berigan <gberigan@cse.unl.edu> wrote: > Hmm, in principle, could a user get away with a long signature just as > long as every fifth line therein is an instance of "\n-- \n"? It would be > like saying, here's my signature, no wait, here's my signature, no wait, > here's my signature. No, there are basically two way's sigs are handled - either the first or the last instance, i.e. they either start looking for it from the beginning or the end of the article. The only thing I've seen done with sigs is coloring and leaving them out of replies (I've heard of having to give a command to see it, but I haven't seen this). Mulitple instances of the sigdash doesn't do anything either good or bad to programs. As for checking for the sig length - I don't see how that could happen by accident. You check to see if the first line starts with the sigdash and then you count the number of lines (maybe checking to see that the last one isn't blank). Look at the perl code I posted - I got rid of extra sigdash lines entirely, but if I dind't it wouldn't have made a difference to the number of lines counted if I'd left them in, it still would have limited the user to 4 lines. If I'd left them in, the only change would be that any or all of those lines could have been sigdashes. And this isn't a langauge artifact - I'd have done substantially the same thing if I was using C (although it would have taken a lot more code of course). > Multiple instances of "\n-- \n" should be treated as an error. There must > be at most one signature on a message and at most one instance of the > signature delimiter. Any false delimiters should be changed to either > "\n--\n" or possibly "\n-- \n". Such modifications are not unheard of. > What does software do if in the article there is a "\n.\n"? I don't know. > It can be easily seen that software translates body instances of "\nFrom " > to "\n>From ". Look at any article where a paragraphs starts with the > word "From" and you'll see it. > > From the example of "\nFrom ", perhaps it should be "\n>-- \n" (though > I've never liked it on From either due to the conflict with standard > inclusion methods). Who does the "\n>From"? I just checked and it doesn't happen either way with a DNEWS server (it sends the article body length right after the headers and then just streams the rest). -- John Moreno
Technical Details
Message-ID:
<142C1D25F49B9CD5.D19CF786948F9BEF.A0B8BB04325B3FE5@library-proxy.airnews.net>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:
<6cjtod$fta$2@news2.xs4all.nl> <slrn6ermsd.5qo.lahvak@math.mps.ohio-state.edu> <F9889283CCAD9B8C.C2F51C40D9D79452.439B2660128AF32D@library-proxy.airnews.net> <slrn6esofo.4v5.lahvak@math.mps.ohio-state.edu> <12036415BADAFE04.1BD6D02BE779330E.E5DCAD03EDAC96CA@library-proxy.airnews.net> <slrn6euiqq.ath.lahvak@math.mps.ohio-state.edu> <35869ED10D7687B6.AB48978987C5110A.6194EA9F69B968A4@library-proxy.airnews.net> <gberigan-2102982137130001@abeln730a.unl.edu>Show Full Headers
Complete Article Headers
Message-ID: <142C1D25F49B9CD5.D19CF786948F9BEF.A0B8BB04325B3FE5@library-proxy.airnews.net>
Subject: Re: Appending signatures - the algorithm (Re: What's in a signature?)
Date: Sun, 22 Feb 1998 00:00:00 +0000
From: phenix@interpath.com (John Moreno)
References: <6cjtod$fta$2@news2.xs4all.nl> <slrn6ermsd.5qo.lahvak@math.mps.ohio-state.edu> <F9889283CCAD9B8C.C2F51C40D9D79452.439B2660128AF32D@library-proxy.airnews.net> <slrn6esofo.4v5.lahvak@math.mps.ohio-state.edu> <12036415BADAFE04.1BD6D02BE779330E.E5DCAD03EDAC96CA@library-proxy.airnews.net> <slrn6euiqq.ath.lahvak@math.mps.ohio-state.edu> <35869ED10D7687B6.AB48978987C5110A.6194EA9F69B968A4@library-proxy.airnews.net> <gberigan-2102982137130001@abeln730a.unl.edu>
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: 327447747
X-Orig-Message-ID: <1d4tte9.hekyr9xi021fN@roxboro0-008.dyn.interpath.net>
Mail-Copies-To: never
NNTP-Posting-Time: Sun Feb 22 00:15:26 1998
X-Face: $!7l?58&Lro>GQtr;A/P^'38=7{P[jPy/?JF*m`Z2&~@3:P3L81Sa7RQ=Y~o| ?'D1cB]L9V=\OS(\8S,5
Organization: phenix@interpath.com
X-FAQs-Read: perl, pascal.mac
NNTP-Proxy-Relay: library.airnews.net
Newsgroups: news.software.readers