Article View: news.software.readers
Article #39186Re: the signature - first paragraph with sigdashes
From: Sven Guckes
Date: Fri, 27 Feb 1998 00:00
Date: Fri, 27 Feb 1998 00:00
64 lines
4569 bytes
4569 bytes
lahvak@math.mps.ohio-state.edu (Jan Hlavacek):
> it would be annoying to have to manually call the "erase signature" macro
> in my editor if the signature contains several sigdashes, or to have to
> "unerase" automatically erased "signature" if the body contains sigdashes.
> I adree that this is not a big deal, unlike long signatures, there isn't very
> many messages around with multiple sigdashes (there is probably much more
> messages with no sigdashes). I just somehow bugs me that this thing is not
> well defined.
OK - here's my revised definition which, I hope, will catch most signatures:
http://www.math.fu-berlin.de/~guckes/afw/#sigrecognition
Signature - Recognition
[980227] How do programs recognize the signature?
Rule: The signature is the first paragraph of the message's
body that starts with a sigdashes line. [A paragraph is a
sequence of non-empty lines.]
NOTE for programmers of user agents: The user agent SHOULD make
the signature visible for composition of the message, ie the
user SHOULD see what he is appending to his message!
Assumption: It is assumed that the signature gets appended by
the user agent with a proper sigdashes line and that the user
does not include further sigdashes lines in his message before
that line. Hence the reason for the additional space and the
immediate termination of that line: This makes it unlikely that
someone might include such a line as part of his message.
Conflict with attachments: As there is the possibility for
attached messages to a message we make the assumption that the
actual message is always the first part of the whole message.
Thus programs can look for the first occurrence of a sigdashes
line. The signature can still contain further sigdashes lines
without any problem.
Some attachments are simply "appended", though. This is often
the case with post to binary groups which contain uuencoded or
binhexed files. However, most of these appended files come
after an empty line so it a good idea to separate these from
signature by disallowing empty lines in signatures. Thus a
signature is the first paragraph which starts with a sigdashes
line.
Consequence: The newsreader therefore MUST eliminate empty
lines from the signature or add a space into them to make them
non-empty to avoid problems with program which hide or remove
signatures.
Is this definition good enough to be implemented in slrn? lahvak?
Some Notes:
Attachments or appended documents (note the difference!)
should be allowed after a signature - therefore the signature
does not need to be at the end of messages. Defining the sig
to the "last N lines" is therefore a bad algorithm.
Sven
Technical Details
Message-ID:
<slrn6fe1sv.4mr.guckes@rudin.math.fu-berlin.de>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> <142C1D25F49B9CD5.D19CF786948F9BEF.A0B8BB04325B3FE5@library-proxy.airnews.net> <slrn6evjak.mr5.lahvak@math.mps.ohio-state.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn6fe1sv.4mr.guckes@rudin.math.fu-berlin.de> Subject: Re: the signature - first paragraph with sigdashes Date: Fri, 27 Feb 1998 00:00:00 +0000 From: guckes@math.fu-berlin.de (Sven Guckes) 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> <142C1D25F49B9CD5.D19CF786948F9BEF.A0B8BB04325B3FE5@library-proxy.airnews.net> <slrn6evjak.mr5.lahvak@math.mps.ohio-state.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: 329231758 X-Old-Subject: Re: Appending signatures - the algorithm (Re: What's in a signature?) Content-Transfer-Encoding: 8bit X-Newsreader-Info: http://www.math.fu-berlin.de/~guckes/slrn/ Mime-Version: 1.0 Reply-To: guckes@math.fu-berlin.de Content-Type: text/plain; charset=iso-8859-1 X-Trace: fu-berlin.de 888604576 17582 (none) 160.45.40.74 Organization: Freie Universitaet Berlin X-Access: 16 17 19 Newsgroups: news.software.readers