Article View: news.software.readers
Article #50771Re: Do we really need Re: at all?
From: Dawn Owens-Nicholson
Date: Mon, 16 Aug 1999 00:00
Date: Mon, 16 Aug 1999 00:00
136 lines
7439 bytes
7439 bytes
Morten Bo Johansen wrote:
> To me it sounds good but having an RFC changed that would suddenly in
> consequence define a (large?) number of newsreaders as buggy is probably not
> easily accomplished.
It's not easy, but that's not a big deal since they're already defined as
buggy--hence this whole thread about how Outlook (an incredibly popular
newsreader) doesn't do the right thing (no matter what you call "the right
thing") with follow-up subjects in its non-English versions. I say, since
we're tackling a bug let's tackle it in a way that would make things simpler
and less likely to screw up propagated articles down the road. Not
modifying the subject except for user modifications does that.
> It should be proposed to the people making this RFC. Re: as an actual
> standard (that others can hit you over the head with) at any rate is
> discriminatory to those of us who have another language.
I agree; this is one more area where current standards show their age.
> This RFC either reflect that the Internet is an American invention - or it
> is simply not updated frequently enough to accomodate the new possibilities.
American invention or not, the standards that define how services work
should be able to handle non-English traffic.
> Another thing comes to mind, how about a search engine as deja.com..in
> this case I like being able to see the Re:'s in the subject very much.
There's no problem there--they can use similar logic to newsreaders--if
there's a References: header (ostensibly with message-IDs in it), the
subject is presented as re-string + subject (where re-string is defined in a
language-sensitive way so non-English readers aren't necessarily seeing "Re:
"). This is very easy to do in SQL, the language I imagine they're already
using to handle their database of articles.
> The people behind it would then need to add their own routine to change
> the appearence of search outputs so answers and questions were visually
> distinguishable in both a grapical and text based browser.
Prepending "Re: " to the displayed subject will do that. But Deja.com is a
threaded newsreader too (one that doesn't show subjects in the threaded
display) so the indents and thread lines will also illustrate what is a
follow-up to what.
All software developers need to write code to keep up with standards and
changing situations (like adding support for other languages) anyhow. If we
are to dismiss changes because it would mean developers had to do work, we
might as well call an end to all future enhancement of all software right
now.
This is not beyond the current technology--I recently finished reading the
O'Reilly Apache modules book and was pleased to learn the support Apache
offers for supporting other languages. I would hope commercial servers (or
whatever Deja.com uses) are as capable. Again, this is really a matter of
how much work are programmers willing to put into applications? It's the
same question countless people are asked when something changes and
something needs updating.
> As an intermittent solution for slrn? It may take a very long time (if
> ever) before the RFC is changed to the effect you describe above. But the
> first step of course should be to propose it - do you have a suggestion
> for a good procedure here?
I'm not clear on what procedure you're talking about--the procedure for
changing the RFC or writing a stopgap slrn macro? The second can be
completed almost immediately--first you need to specify precisely what
alteration you want made (a couple have been suggested in this thread to
date).
Roughly, this is one way to do whatever modification you wish to the
Subject: header:
Fail quickly--determine if this whole process is necessary in the first
place--if this isn't an offensive article, no need to alter it. This
failure step will need to be enhanced if you want to scan for more than
one translation of "Re: ":
!if (string_match (extract_article_header ("Subject"), "^Re:", 1))
return ();
Right now, there's a big question you should ask yourself--if the article
begins with Re: (in any language), and it has a References: header, do you
care if it's a follow-up that you should not modify? For instance--the
subject is "Re: Re: Re:" and there's a valid References: header--do you
modify it? I'll assume you want to for the rest of this rundown. If you
want to narrow the range of errors to Outlook articles with offensive
subjects, that can be done too.
Record the article as an array of strings:
variable article = strtok (article_as_string (), "\n");
We need to record the whole article because replace_article() replaces the
/whole/ article (making this different I'll leave as an excercise for the
reader--it's not that hard).
Find the Subject: header and make the appropriate modification--this loop
won't execute for long if your article has a header-body separator:
variable
article_length = length (article), % length of article array
n, % a counter
header; % the current header
for (n = 0; n < article_length; n++)
{
header = article[n];
if (orelse
{ header == "" } % no more headers
{ string_match (header, "^Subject: ", 1) })
break;
}
!if (strlen (header)) error ("This article has no Subject: header!");
%
% Do something here with the subject header, stored in article[n].
% For example: article[n] = "Subject: Indian food is really good.";
% Don't forget to make sure the string still matches "^Subject: "!
%
Then put the article back so slrn will display the modified subject:
replace_article (strjoin (article, "\n"));
Then you'll bind this function to the keys you use to select an article
(spacebar and return by default). This won't affect the header list
(there's no S-Lang API to do that) but it will alter the article view.
If you wanted a series of changes to be done, you could create a chain of
handlers, each one responsible for making a small change, and pass the
article to each handler in turn. Like I said before, it depends on what
alterations you want and how fancy you want to be in altering the article.
Technical Details
Message-ID:
<slrn7rgt2j.kgc.bluemoon@ux6.cso.uiuc.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-mailReferences:
<slrn7qthim.qj.mojo@localhost.localdomain> <slrn7qudaj.s26.bluemoon@ux6.cso.uiuc.edu> <slrn7qusfb.11d.mojo@localhost.localdomain> <slrn7qups0.sl6.bluemoon@ux6.cso.uiuc.edu> <slrn7r1800.c0.mojo@localhost.localdomain> <slrn7r8uf1.ki7.bluemoon@ux6.cso.uiuc.edu> <slrn7rb6ns.b1.mojo@localhost.localdomain> <slrn7re75l.hs1.bluemoon@ux6.cso.uiuc.edu> <slrn7rg6fa.nm.mojo@swiftsnest.image.dk>Show Full Headers
Complete Article Headers
Message-ID: <slrn7rgt2j.kgc.bluemoon@ux6.cso.uiuc.edu> Subject: Re: Do we really need Re: at all? Date: Mon, 16 Aug 1999 00:00:00 +0000 From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) References: <slrn7qthim.qj.mojo@localhost.localdomain> <slrn7qudaj.s26.bluemoon@ux6.cso.uiuc.edu> <slrn7qusfb.11d.mojo@localhost.localdomain> <slrn7qups0.sl6.bluemoon@ux6.cso.uiuc.edu> <slrn7r1800.c0.mojo@localhost.localdomain> <slrn7r8uf1.ki7.bluemoon@ux6.cso.uiuc.edu> <slrn7rb6ns.b1.mojo@localhost.localdomain> <slrn7re75l.hs1.bluemoon@ux6.cso.uiuc.edu> <slrn7rg6fa.nm.mojo@swiftsnest.image.dk> 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: 513516673 Organization: University of Illinois at Urbana-Champaign User-Agent: slrn/0.9.5.7 (UNIX) Newsgroups: news.software.readers