Thread View: news.software.readers
25 messages
25 total messages
Started by Jan Hlavacek
Fri, 20 Feb 1998 00:00
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: Jan Hlavacek
Date: Fri, 20 Feb 1998 00:00
Date: Fri, 20 Feb 1998 00:00
22 lines
1294 bytes
1294 bytes
On 20 Feb 1998 12:42:53 GMT, Jeroen Scheerder <js@xs4all.nl> wrote:
> Sven Guckes (guckes@math.fu-berlin.de):
>
> > remove all sigdashes lines from sigfile
>
> Actually, I think you mean "remove all sigdashes from article body".
> Sigdashes inside .sigs are irrelevant: everything after the first
> '^-- $' is, by definition, part of the .sig. No confusion there.
Or is it everything after the last "^-- $"?
Where is it defined?
lahvak
--
Jan Hlav\'{a}\v{c}ek
lahvak@math.mps.ohio-state.edu (Blind Carbon Copies will bounce)
www: http://www.math.ohio-state.edu/~lahvak/ is back!
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: John Moreno
Date: Fri, 20 Feb 1998 00:00
Date: Fri, 20 Feb 1998 00:00
28 lines
2059 bytes
2059 bytes
Jan Hlavacek <lahvak@math.mps.ohio-state.edu> wrote: > On 20 Feb 1998 12:42:53 GMT, Jeroen Scheerder <js@xs4all.nl> wrote: > > Sven Guckes (guckes@math.fu-berlin.de): > > > > > remove all sigdashes lines from sigfile > > > > Actually, I think you mean "remove all sigdashes from article body". > > Sigdashes inside .sigs are irrelevant: everything after the first > > '^-- $' is, by definition, part of the .sig. No confusion there. > > Or is it everything after the last "^-- $"? > > Where is it defined? In this case by where it's being kept - different programs may do different things when they encounter more than one or may start looking for it from different places, but given the situation that Sven described Jeroen's remark makes sense - the sig is a separate file and after checking to see if the first line is "^-- $" (to see if the program needs to add it) the rest of it IS the .sig. It makes sense, but so does Sven's proposal. -- John Moreno
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: Jan Hlavacek
Date: Sat, 21 Feb 1998 00:00
Date: Sat, 21 Feb 1998 00:00
20 lines
1495 bytes
1495 bytes
On Fri, 20 Feb 1998 16:06:22 -0500, John Moreno <phenix@interpath.com>
wrote:
> In this case by where it's being kept - different programs may do
> different things when they encounter more than one or may start looking
It seems that some programs are not even consistent. Slrn just check
for "^-- $" at the first line of signature file, but when it scans for
signature, it scans from the end (and only 10 lines, I believe).
It is a while since I used gnus last time, but I believe it did the
same.
lahvak
--
Jan Hlav\'{a}\v{c}ek
lahvak@math.mps.ohio-state.edu (Blind Carbon Copies will bounce)
www: http://www.math.ohio-state.edu/~lahvak/ is back!
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: Jan Hlavacek
Date: Sat, 21 Feb 1998 00:00
Date: Sat, 21 Feb 1998 00:00
54 lines
3523 bytes
3523 bytes
On Sat, 21 Feb 1998 14:16:20 -0500, John Moreno <phenix@interpath.com>
wrote:
> Jan Hlavacek <lahvak@math.mps.ohio-state.edu> wrote:
>
> > John Moreno <phenix@interpath.com> wrote:
> > > In this case by where it's being kept - different programs may do
> > > different things when they encounter more than one or may start looking
> >
> > It seems that some programs are not even consistent. Slrn just check
> > for "^-- $" at the first line of signature file, but when it scans for
> > signature, it scans from the end (and only 10 lines, I believe).
> > It is a while since I used gnus last time, but I believe it did the
> > same.
>
> Well, that depends upon what you consider consistent - a .sig is
> supposed to get appended to the text with a sigdash as the first line,
> so checking that line is all that /needs/ to be done. And sigs are
> supposed to be 4 lines or less as they aren't supposed to contain your
> life history or a picture of your spouse (or as I recently posted - a
> ascii movie of somebody doing the high dive), so checking the last 10
> lines saves time looking where it's not supposed to be. It's a sensible
> optimization, and when it fails the right thing gets done - you complain
> to the person with the 11+ sig that their sig is causing problems, and
> in anycase is considered rude and excessive.
Of course! It is perfectly OK to scan only 10 lines, actually, it
would be fine with me to scan only 5 lines ;-). The discussion was
about the algorithm for appending signatures, and whether the
signature delimiter should be the first sigdash in the message or the
last one. Sven posted an algorithm which removed all sigdashed from
the .signature file, and somebody objected that what newsreaders should
do is to remove sigdashes from the article body. What I was trying to
point out is that the newsreaders I have some experience with do look
for sigdashes from the end, but they don't remove extra sigdashes from
the .sig file, except maybe the first one. Of course, one can argue
that putting sigdashed in the middle of your .sig file is equally
idiotic as creating .sig files with 11 or 100 lines, and if somebody
does it we should complain to them. But then again, all this
discussion started with GNKSA, according to which the software is
supposed to help users avoid mistakes like this.
blah
--
blah
--
blah
--
Jan Hlav\'{a}\v{c}ek
lahvak@math.mps.ohio-state.edu (Blind Carbon Copies will bounce)
www: http://www.math.ohio-state.edu/~lahvak/ is back!
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: Curt Welch
Date: Sat, 21 Feb 1998 00:00
Date: Sat, 21 Feb 1998 00:00
67 lines
4459 bytes
4459 bytes
lahvak@math.mps.ohio-state.edu (Jan Hlavacek) wrote: > On 20 Feb 1998 12:42:53 GMT, Jeroen Scheerder <js@xs4all.nl> wrote: > > Sven Guckes (guckes@math.fu-berlin.de): > > > > > remove all sigdashes lines from sigfile > > > > Actually, I think you mean "remove all sigdashes from article body". > > Sigdashes inside .sigs are irrelevant: everything after the first > > '^-- $' is, by definition, part of the .sig. No confusion there. > Or is it everything after the last "^-- $"? > Where is it defined? It's not defined, and it doesn't need to be in my opinion. Most articles on Usenet that have a "-- " will have only one of them and it will correctly define the .sig. So, any of the algorithms (like finding the first dash dash space or the last) will work fine. If you want to be more accurate on the few articles that have multiple, dash dash spaces, then the newsreader author is free to implement any algorithm they choose. The reality these days is that most articles that have more than one dash dash space line are caused by multiple sigs being appended. So, the "everything after the first '-- '" algorithm will produce better results than the "everything after the last" algorithm. But, I've seen at least one case where a file was appended after the sig. The article was clearly formatted incorrectly, yet I want my newsreader to "do the right thing" even when given bad data, so what I chose to implement was an algorithm that looked for the first "-- ", but limited it's search to the last part of the article. "last part" was defined by an algorithm which I forget but was based on the length of the article. Basically, if the sig is too long, it will be treaded as part of the article and not part of the sig when creating a reply. Also, I've seen articles with a double dash but no space. I also look for those if there's not a valid dash dash space, but I only honor the double dash if it's in something like the last 10 lines of the article. And then there's the issue of articles that have been run though PGP. It's not uncommon to see a PGP signed article where the dash dash space as been changed into a dash space dash dash space. Finding the sig correctly in those is even more work :). As far as what a newsreader should do when creating a new article, I think it should probably try to prevent multiple dash dash spaces in the article. If there are extra dash dash spaces at the end of the article or the beginning of the sig, they should be stripped out and replaced with a single dash dash space. If there are other dash dash spaces in the article or sig, they should be changed to a simple double dash (removing the space). But, if there is no sig, then the user should be allowed to add one by hand at the end of the article and insert the dash dash space themself. So in this case, the dash dash space in the body shouldn't be changed to a dash dash. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: John Moreno
Date: Sat, 21 Feb 1998 00:00
Date: Sat, 21 Feb 1998 00:00
28 lines
2380 bytes
2380 bytes
Jan Hlavacek <lahvak@math.mps.ohio-state.edu> wrote: > John Moreno <phenix@interpath.com> wrote: > > In this case by where it's being kept - different programs may do > > different things when they encounter more than one or may start looking > > It seems that some programs are not even consistent. Slrn just check > for "^-- $" at the first line of signature file, but when it scans for > signature, it scans from the end (and only 10 lines, I believe). > It is a while since I used gnus last time, but I believe it did the > same. Well, that depends upon what you consider consistent - a .sig is supposed to get appended to the text with a sigdash as the first line, so checking that line is all that /needs/ to be done. And sigs are supposed to be 4 lines or less as they aren't supposed to contain your life history or a picture of your spouse (or as I recently posted - a ascii movie of somebody doing the high dive), so checking the last 10 lines saves time looking where it's not supposed to be. It's a sensible optimization, and when it fails the right thing gets done - you complain to the person with the 11+ sig that their sig is causing problems, and in anycase is considered rude and excessive. -- John Moreno
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: John Moreno
Date: Sat, 21 Feb 1998 00:00
Date: Sat, 21 Feb 1998 00:00
23 lines
2209 bytes
2209 bytes
Jan Hlavacek <lahvak@math.mps.ohio-state.edu> wrote: > What I was trying to point out is that the newsreaders I have some > experience with do look for sigdashes from the end, but they don't remove > extra sigdashes from the .sig file, except maybe the first one. Of > course, one can argue that putting sigdashed in the middle of your .sig > file is equally idiotic as creating .sig files with 11 or 100 lines, and > if somebody does it we should complain to them. But then again, all > this discussion started with GNKSA, according to which the software is > supposed to help users avoid mistakes like this. Ok, I see what you're saying, but I think scanning the body is a bit too much, and as for the GNKSA - I'd say that putting extra sigdashes in the sig isn't a big problem, some newsreaders will handle it just, some won't. It's a user mistake I'll agree - just not a big enough one for the GNKSA to address. -- John Moreno
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: Greg Berigan
Date: Sat, 21 Feb 1998 00:00
Date: Sat, 21 Feb 1998 00:00
26 lines
2318 bytes
2318 bytes
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.
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"? 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).
--
,=<#)-=# <http://incolor.inetnebr.com/wotw/> (The War of the Worlds)
,_--//--_,
_-~_-(####)-_~-_ "Look at your pages in as many different browsers as you can
(#>_--'~--~`--_<#) get your hands on." -- William G. Schlake, Dec. 7th, 1996
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: Curt Welch
Date: Sun, 22 Feb 1998 00:00
Date: Sun, 22 Feb 1998 00:00
33 lines
2795 bytes
2795 bytes
phenix@interpath.com (John Moreno) wrote: > Greg Berigan <gberigan@cse.unl.edu> wrote: > > 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). Unix mail does that because in a mailbox, each new message begins with a line like "From daemon Sat Sep 13 17:33:56 1997". Any line begining with "From " marks the beginning of a new message. In the original Unix mail system, that From line was the only header. The ARPA style headers were added later when TCP/IP support and Internet mail was added to Unix. The old "From " lines were kept for backward compatibility. I've never every seen it in a news system. Any news system that does that is bogus. But, if your news is being e-mailed to you or the article went though a Unix mail server on it's way to Usenet, that could happen. From -- look a test.... -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: Curt Welch
Date: Sun, 22 Feb 1998 00:00
Date: Sun, 22 Feb 1998 00:00
11 lines
1564 bytes
1564 bytes
gberigan@cse.unl.edu (Greg Berigan) wrote: > Multiple instances of "\n-- \n" should be treated as an error. Check out news.newusers.questions and see if you still think that way. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: John Moreno
Date: Sun, 22 Feb 1998 00:00
Date: Sun, 22 Feb 1998 00:00
52 lines
3113 bytes
3113 bytes
Jan Hlavacek <lahvak@math.mps.ohio-state.edu> wrote: > John Moreno <phenix@interpath.com> wrote: > > 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 > > Slrn variable: > > Name: ignore_signature > Type: Integer > > Description: If non-zero, slrn assumes that article ends at the first > line of the signature. If you press spacebar when the first line of > the signature is visible, slrn skips the rest of the signature and > goes to the next article. > > > instances of the sigdash doesn't do anything either good or bad to > > programs. > > It doesn't crash programs, if that's what you mean, neither do > long signatures. But 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. Erasing signatures would be annoying - but not significantly moreso than having to erase nonstandard sigs. > 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. It's not well defined because it's relatively rare and there are oposite views as to what is best (first or last). From the bottom is faster, from the top catches a common error (including the sig twice - I often do this in programs that don't put the sig in with the body, I went years before giving in and letting the programs handle it and the reflexes are still in the fingers). > Right now I am posting with modified version of slrn which doesn't let > me post with multiple sigdashes and forces me to reedit the message. I Does slrn append the sig on messages before you edit or after? -- John Moreno
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: Greg Berigan
Date: Sun, 22 Feb 1998 00:00
Date: Sun, 22 Feb 1998 00:00
23 lines
2038 bytes
2038 bytes
In article <19980222000636.886$fW@newsreader.com>,
curt@kcwc.com (Curt Welch) wrote:
>gberigan@cse.unl.edu (Greg Berigan) wrote:
>> Multiple instances of "\n-- \n" should be treated as an error.
> Check out news.newusers.questions and see if you still think that way.
Okay, how about "may be treated as an error"?
The course of action that keeps the same behavior both for software which
recognizes the first instance and which recognizes the last instance of
"\n-- \n" as a sigdash is to ensure that there is only the one instance.
Conservative in what you send?
--
,=<#)-=# <http://incolor.inetnebr.com/wotw/> (The War of the Worlds)
,_--//--_,
_-~_-(####)-_~-_ "Look at your pages in as many different browsers as you can
(#>_--'~--~`--_<#) get your hands on." -- William G. Schlake, Dec. 7th, 1996
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: 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
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: Jan Hlavacek
Date: Sun, 22 Feb 1998 00:00
Date: Sun, 22 Feb 1998 00:00
14 lines
1096 bytes
1096 bytes
On Sun, 22 Feb 1998 02:48:21 -0500, John Moreno <phenix@interpath.com>
wrote:
> Does slrn append the sig on messages before you edit or after?
Before.
--
Jan Hlav\'{a}\v{c}ek
lahvak@math.mps.ohio-state.edu (Blind Carbon Copies will bounce)
www: http://www.math.ohio-state.edu/~lahvak/ is back!
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: John Moreno
Date: Sun, 22 Feb 1998 00:00
Date: Sun, 22 Feb 1998 00:00
31 lines
2153 bytes
2153 bytes
Curt Welch <curt@kcwc.com> wrote: > phenix@interpath.com (John Moreno) wrote: > > Greg Berigan <gberigan@cse.unl.edu> wrote: > > > 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. -snip- > > > Who does the "\n>From"? I just checked and it doesn't happen either way -snip- > Unix mail does that because in a mailbox, each new message begins with a -snip- > > I've never every seen it in a news system. Any news system that does that > is bogus. But, if your news is being e-mailed to you or the article went > though a Unix mail server on it's way to Usenet, that could happen. I knew about the unix mailbox format, but didn't know the From getting modified in the body (that's probably easier than checking for the whole format, but isn't very good in today's world). As for it being done in news - THAT I've never heard of (and no wonder if it's not being done, there's no end of things which aren't being done which I don't hear about). -- John Moreno
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: Jan Hlavacek
Date: Sun, 22 Feb 1998 00:00
Date: Sun, 22 Feb 1998 00:00
46 lines
3003 bytes
3003 bytes
On Sun, 22 Feb 1998 01:15:42 -0500, John Moreno <phenix@interpath.com>
wrote:
> 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
Slrn variable:
Name: ignore_signature
Type: Integer
Description: If non-zero, slrn assumes that article ends at the first
line of the signature. If you press spacebar when the first line of
the signature is visible, slrn skips the rest of the signature and
goes to the next article.
> instances of the sigdash doesn't do anything either good or bad to
> programs.
It doesn't crash programs, if that's what you mean, neither do
long signatures. But 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.
Right now I am posting with modified version of slrn which doesn't let
me post with multiple sigdashes and forces me to reedit the message. I
can still force the posting (it works the same way as reject_long_lines,
for those of you who use slrn). It took about 10 lines of source. If
anyone is interested, I can post the patch, but I don't think it's
really worth.
lahvak
--
Jan Hlav\'{a}\v{c}ek
lahvak@math.mps.ohio-state.edu (Blind Carbon Copies will bounce)
www: http://www.math.ohio-state.edu/~lahvak/ is back!
Re: Appending signatures - the algorithm (Re: What's in a signature?)
Author: Jeroen Scheerder
Date: Wed, 25 Feb 1998 00:00
Date: Wed, 25 Feb 1998 00:00
26 lines
2100 bytes
2100 bytes
Jan Hlavacek (lahvak@math.mps.ohio-state.edu): > > Actually, I think you mean "remove all sigdashes from article body". > > Sigdashes inside .sigs are irrelevant: everything after the first > > '^-- $' is, by definition, part of the .sig. No confusion there. > > Or is it everything after the last "^-- $"? > > Where is it defined? Both as a standard in actual implementations, as in the (expired) "son-of-1036". I don't have the UseFor Draft Drafts at hand, but I recall the issue is addressed (inherited from son-of-1036) there too. "Established practice" is probably the best answer to this question, if you're not satisfied with the forementioned documents. -- J$ -- dash-dash-space this is my .sig it's not so .big
Re: the signature - first paragraph with sigdashes
Author: John Moreno
Date: Fri, 27 Feb 1998 00:00
Date: Fri, 27 Feb 1998 00:00
70 lines
4435 bytes
4435 bytes
Sven Guckes <guckes@math.fu-berlin.de> wrote: > 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. No conflict with attachments - they shouldn't be included in the reply in any case. In fact this is a good way to make sure that they don't accidently end up there. > 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. Again not necessary. If they are appended then there needs to be some way of indicating where it starts - the uuencode line with the name of the file is good enough for that. > 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. Well, programs shouldn't be /removing/ signatures. And there's no problem with programs that /hide/ them unless they don't also have a way of showing them. I see no reason to limit it to the first paragraph and there are quite a few sigs that currently have more than one paragraph (even ones that fit within the McQ limit, not to mention the ones that don't). -- John Moreno I am trying to convince the author of YA-NewsWatcher that the latest version should be released to the public. He doesn't think there's much interest in a new version. Help me prove him wrong. To do so, send me mail <mailto:phenix@interpath.com> with a Subject of New YA. Comments on what you like/dislike in the current version will be appreciated.
Re: the signature - first paragraph with sigdashes
Author: Vincent Lefevre
Date: Fri, 27 Feb 1998 00:00
Date: Fri, 27 Feb 1998 00:00
49 lines
2722 bytes
2722 bytes
In article <A706E344B8B71021.9C33E2E9A34AB668.23716EABCC51FD82@library-proxy.airnews.net>, John Moreno <phenix@interpath.com> wrote: > Sven Guckes <guckes@math.fu-berlin.de> wrote: > > OK - here's my revised definition which, I hope, will catch most > > signatures: [snip] Agreed with this proposition. > Again not necessary. If they are appended then there needs to be some > way of indicating where it starts - the uuencode line with the name of > the file is good enough for that. Sometimes, there's no way of indicating appended documents, as they may have different forms. If one wants something standard, MIME would be the best solution. Moreover some people write their "P.S." after the signature (though I don't like that). In fact, I don't like appended documents either; I prefer when the documents are included just before the signature. > Well, programs shouldn't be /removing/ signatures. Why not? The user may want to remove signatures in order to avoid downloading them. > And there's no problem with programs that /hide/ them unless they don't > also have a way of showing them. I see no reason to limit it to the first If the signature is hidden by default, you would never know if there's something else in it and if it is needed to show it. It happened to me a few days ago, with someone who had written a "P.S." after his signature (and my newsreader doesn't hide the signature, it just displays it with another color). > paragraph and there are quite a few sigs that currently have more than one > paragraph (even ones that fit within the McQ limit, not to mention the ones > that don't). Lines with a single space are OK. -- Vincent Lefevre <vlefevre@ens-lyon.fr> | Acorn Risc PC, StrongARM @ 202MHz WWW: http://www.ens-lyon.fr/~vlefevre/ | 20+2MB RAM, Eagle M2, TV + Teletext PhD st. in Computer Science, 2nd year | Apple CD-300, SyQuest 270MB (SCSI) -----------------------------------------------------------------------------
Re: the signature - first paragraph with sigdashes
Author: 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
Re: the signature - first paragraph with sigdashes
Author: Sylvan Butler
Date: Mon, 02 Mar 1998 00:00
Date: Mon, 02 Mar 1998 00:00
23 lines
2125 bytes
2125 bytes
guckes@math.fu-berlin.de (Sven Guckes) wrote:
>OK - here's my revised definition which, I hope, will catch most signatures:
> 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.]
...
>Is this definition good enough to be implemented in slrn? lahvak?
Seems like it. One minor improvement would be to define exactly what is
the sigdashes line, rather than relying on "common" knowledge.
sdb
--
| Sylvan Butler | Not speaking for Hewlett-Packard | sbutler.boi.hp.com |
| Watch out for my e-mail address. Thank UCE. #### change ^ to @ #### |
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
(Or was that Nov 11 1755, from the Pennsylvania Assembly ?)
"Don't Tread On Me!"
Re: the signature - first paragraph with sigdashes
Author: Sven Guckes
Date: Tue, 03 Mar 1998 00:00
Date: Tue, 03 Mar 1998 00:00
19 lines
1911 bytes
1911 bytes
guckes@math.fu-berlin.de (Sven Guckes) wrote: >OK - here's my revised definition which, I hope, will catch most signatures: > 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.] >Is this definition good enough to be implemented in slrn? nospam+_no_Zs__9803@hpb13799.zboi.hpz.com (Sylvan Butler): > Seems like it. One minor improvement would be to define exactly what is > the sigdashes line, rather than relying on "common" knowledge. AFW FAQ http://www.math.fu-berlin.de/~guckes/afw/ If that doesn't suffice for a definition then I don't know what is. Sven
Re: the signature - first paragraph with sigdashes
Author: Sylvan Butler
Date: Wed, 04 Mar 1998 00:00
Date: Wed, 04 Mar 1998 00:00
35 lines
2829 bytes
2829 bytes
guckes@math.fu-berlin.de (Sven Guckes) wrote:
>guckes@math.fu-berlin.de (Sven Guckes) wrote:
>>OK - here's my revised definition which, I hope, will catch most signatures:
>> 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.]
>>Is this definition good enough to be implemented in slrn?
>nospam+_no_Zs__9803@hpb13799.zboi.hpz.com (Sylvan Butler):
>> Seems like it. One minor improvement would be to define exactly what is
>> the sigdashes line, rather than relying on "common" knowledge.
> AFW FAQ http://www.math.fu-berlin.de/~guckes/afw/
>If that doesn't suffice for a definition then I don't know what is.
That does OK. It is too long and has too much extraneous info to be a
good reference from a "standards" perspective.
However, as I originally stated, the signature definition could be
improved by including the definition of "sigdashes". This inclusion
could be done by reference to another widely available document, or by
actually adding a paragraph or two with the definition.
sdb
--
| Sylvan Butler | Not speaking for Hewlett-Packard | sbutler.boi.hp.com |
| Watch out for my e-mail address. Thank UCE. #### change ^ to @ #### |
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
(Or was that Nov 11 1755, from the Pennsylvania Assembly ?)
"Don't Tread On Me!"
Re: the signature - first paragraph with sigdashes
Author: Sven Guckes
Date: Thu, 05 Mar 1998 00:00
Date: Thu, 05 Mar 1998 00:00
25 lines
2059 bytes
2059 bytes
> > AFW FAQ http://www.math.fu-berlin.de/~guckes/afw/ > >If that doesn't suffice for a definition then I don't know what is. nospam+_no_Zs__9803@hpb13799.zboi.hpz.com (Sylvan Butler): > That does OK. It is too long and has too much extraneous info > to be a good reference from a "standards" perspective. Oh, too much info, eh? Sheesh - can't please everyone. > the signature definition could be improved > by including the definition of "sigdashes". Well, that's what this FAQ does, doesn't it? > This inclusion could be done by reference to another widely available > document, or by actually adding a paragraph or two with the definition. Looks like this FAQ must become some RFC before some people "believe" in it. Beaureaucrats! Sven
Re: the signature - first paragraph with sigdashes
Author: Russell Schulz
Date: Sat, 07 Mar 1998 00:00
Date: Sat, 07 Mar 1998 00:00
15 lines
1386 bytes
1386 bytes
guckes@math.fu-berlin.de (Sven Guckes) writes: >> This inclusion could be done by reference to another widely available >> document, or by actually adding a paragraph or two with the definition >> [of sigdashes]. > > Looks like this FAQ must become some RFC before some people > "believe" in it. what's wrong with Henry Spencer's `news.txt'? -- Russell_Schulz@locutus.ofB.ORG Shad 86c
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads