🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
51 messages
51 total messages Started by Sven Guckes Tue, 02 Mar 1999 00:00
Re: attrib rant -> slrn attribution and commands
#46982
Author: Sven Guckes
Date: Tue, 02 Mar 1999 00:00
56 lines
3656 bytes
nm@NoAdsPlease.ii.com (Nancy this-address-is-valid McGough):
> On 1 Mar 1999, Sven Guckes <guckes@math.fu-berlin.de> wrote:
> > But why is the date in the attribution?
> > This info is the *header*, anyway!
> .. I like to have the date because the article may have expired on my news
> server and the date can help me track it down at DejaNews or one of the other
> news archives.

See that references line?  It contains a list of N previous articles
and your newsreader should allow you to fetch these from the newsserver.
I bet you knew that, but why won't you use that info?  I'll tell you:
Because your newsreader has no command to use that information.  Sad.

Btw, slrn has these commands to aid you in finding "previous" articles:

      ESC-l	Prompt for message-id and get it from newsserver
      ESC-p	Get previous article off the newsserver
ESC-1-ESC-p	Reconstruct thread by fetching all referenced articles

Pine developers - way to go!  *grin*

> I also like having the person's email address so if I want to respond
> privately to the person who's message is being quoted, I don't have
> to go find the original article to get their email address.

Absolutely - an address should always be included with the attribution for
that very reason.  Unfortunately, "nospam addresses" are hip these days... :-/

> FYI, here's how I specify it in my pinerc:
> reply-leadin=On _DAY_ _MONTHABBREV_ _YEAR_, _FROM_ <_ADDRESS_> wrote:

The date should go last, I think.  YMMV.

With slrn you would want to use this then:

  % This sets the follow-up string.  Here, the following format specifiers are
  % recognized:	%d:date,  %r:realname, %f:emailaddress ("From"),
  % 		%s:subject, %m:msgid, %n:newsgroups, %%: percent-sign
  set followup "%f (%r) [%d]:"

This also make it much easier to copy a name+address to an email, btw.

> > Btw, there is no need or empty lines before the attribute, either.
> Do you mean *after* the attribution line and before the quoted text?

Yup.  Empty lines between attribution and quoted text are a waste of space.

Sven  [come and join the colorfule side of Usenet!]

-- 
Sven Guckes guckes@math.fu-berlin.de                using SLRN 0.9.4.6 [980211]
SLRN Pages:     http://www.math.fu-berlin.de/~guckes/slrn/     0.9.5.4 [981105]
SLRN Wishlist:  http://www.math.fu-berlin.de/~guckes/slrn/wish.html
SLRN Author:    http://space.mit.edu/~davis/slrn.html John E. Davis aka JED

What slrn's "*" (HEADER_TAGGED) really means.
#46974
Author: Dawn Owens-Nicholson
Date: Tue, 02 Mar 1999 00:00
16 lines
1849 bytes
Robin S. Socha wrote:
> True. But slrn and Gnus allow for marking articles as ummm... non-expirable

Actually, slrn's HEADER_TAGGED bit prevents the article's read-status from
changing by using the intrinsic commands.  This has nothing to do with
expiration (which is strictly controlled by the server).  Newsreaders don't
tell servers which articles to expire and which to leave alone.

But it would be nice if slrn's article list and article body windows could
be changed to accomodate S-Lang control.  Then a macro could be written to
put articles in there which means you could make a better cache or make
HEADER_TAGGED also mean "this article should not be removed from the cache
without explicit authorization" (so, as far as the user knows, the article
hasn't expired) and a bunch of other nice stuff.

pine vs. slrn - Gnus wins (was: attrib rant -> slrn attribution and commands)
#46994
Author: Robin S. Socha
Date: Tue, 02 Mar 1999 00:00
38 lines
2836 bytes
* Nancy this-address-is-valid McGough <nm@NoAdsPlease.ii.com> writes:
> On 2 Mar 1999, Sven Guckes <guckes@math.fu-berlin.de> wrote:
>> nm@NoAdsPlease.ii.com (Nancy this-address-is-valid McGough):

[fetch previous articles via keyboard shortcuts]
> Being able to easily go to a msg listed in the References header would be
> great, but even your newsreader (slrn) can not do that if the message has
> expired on your news server. 

True. But slrn and Gnus allow for marking articles as ummm... non-expirable
(Gnus does a lot more than slrn, though). If you use that in connection
with a good newsserver, you can keep entire threads for quite some time.

> What we need (IMHO) are IMAP-accessible news *archives* that can easily
> be linked to from our newsreaders.

<http://www.dejanews.com/> Gnus allows for dejanews to be plonked into a
group, so there...

>> Btw, slrn has these commands to aid you in finding "previous" articles:
[examples]
> But these only work if the articles haven't expired.

Stating the obvious? Of course it doesn't work then.

>> Empty lines between attribution and quoted text are a waste of space.
> I agree and to me it seems harder to figure out what attribution line
> goes with what text when there are blank lines.

That's because your newsreader isn't coloured:
<http://socha.net/Gnus/screenshots/article.html> is what you really
want. Shut up, Sven - unless I'm completely mistaken, slrn doesn't colour
more than one level of quotes.

-- 
Robin S. Socha  <http://socha.net/>

Re: pine vs. slrn - Gnus wins (was: attrib rant -> slrn attribution and commands)
#46996
Author: Steve Lamb
Date: Tue, 02 Mar 1999 00:00
20 lines
2173 bytes
On 02 Mar 1999 19:36:08 +0100, Robin S. Socha
<donotccmeoriwillkillyou@socha.net> wrote:
>That's because your newsreader isn't coloured:
><http://socha.net/Gnus/screenshots/article.html> is what you really
>want. Shut up, Sven - unless I'm completely mistaken, slrn doesn't colour
>more than one level of quotes.

    And... what?  Of what use is that?  If I'm not mistaken, GNUS parses the
multiple (ICK!) colors from the level of >'s at the front.  If people can't
trim (or read) attributions correctly based on the number of >'s (which is
kinda intuitive, if you ask me), what makes you think color is going to help
any?

-- 
             Steve C. Lamb             | Opinions expressed by me are not my
    http://www.calweb.com/~morpheus    | employer's.  They hired me for my
             ICQ: 5107343              | skills and labor, not my opinions!
---------------------------------------+-------------------------------------

Re: attrib rant -> slrn attribution and commands
#46998
Author: Hrvoje Niksic
Date: Tue, 02 Mar 1999 00:00
12 lines
1631 bytes
guckes@math.fu-berlin.de (Sven Guckes) writes:

> Yup.  Empty lines between attribution and quoted text are a waste of
> space.

Clearly a matter of taste.  The empty line looks nice to me.

> Sven  [come and join the colorfule side of Usenet!]

Right.

Re: attrib rant -> slrn attribution and commands
#47002
Author: Nancy this-address-is-valid McGo...
Date: Tue, 02 Mar 1999 00:00
60 lines
3674 bytes
On 2 Mar 1999, Sven Guckes <guckes@math.fu-berlin.de> wrote:
> nm@NoAdsPlease.ii.com (Nancy this-address-is-valid McGough):
> > .. I like to have the date because the article may have expired on
> > my news server and the date can help me track it down at DejaNews
> > or one of the other news archives.
> 
> See that references line?  It contains a list of N previous articles
> and your newsreader should allow you to fetch these from the newsserver.
> I bet you knew that, but why won't you use that info?  I'll tell you:
> Because your newsreader has no command to use that information.  Sad.

Being able to easily go to a msg listed in the References header would
be great, but even your newsreader (slrn) can not do that if
the message has expired on your news server. What we need (IMHO) are
IMAP-accessible news *archives* that can easily be linked to from our
newsreaders. 


> Btw, slrn has these commands to aid you in finding "previous" articles:
> 
>       ESC-l	Prompt for message-id and get it from newsserver
>       ESC-p	Get previous article off the newsserver
> ESC-1-ESC-p	Reconstruct thread by fetching all referenced articles

But these only work if the articles haven't expired.


> > I also like having the person's email address so if I want to
> > respond privately to the person whose message is being quoted, I
> > don't have to go find the original article to get their email
> > address.
> 
> Absolutely - an address should always be included with the
> attribution for that very reason.  Unfortunately, "nospam addresses"
> are hip these days... :-/

> This also make it much easier to copy a name+address to an email, btw.

Actually, either  _FROM_ <_ADDRESS_>  or  emailaddress ("From") are
perfectly valid formats for name+address. I think the first is
preferred these days.


> > > Btw, there is no need or empty lines before the attribute, either.
> > Do you mean *after* the attribution line and before the quoted text?
> 
> Yup.  Empty lines between attribution and quoted text are a waste of space.

I agree and to me it seems harder to figure out what attribution line
goes with what text when there are blank lines.


-- 
For Pine info and links, see www.ii.com/internet/messaging/pine/
 
�Nancy McGough           http://www.ii.com           Infinite Ink
--= Posted via PINE: Power Internet News & Email for Win/Unix =--


Re: pine vs. slrn - Gnus wins (was: attrib rant -> slrn attribution and commands)
#47003
Author: David Risner
Date: Wed, 03 Mar 1999 00:00
48 lines
3104 bytes
On 03 Mar 1999 08:14:56 +0100, Robin S. Socha
<donotccmeoriwillkillyou@socha.net> wrote:
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

And yours is so much better.  Not everybody has access to procmail.

Please, discussing the relative merits of the newsreaders is good, but the
personal invectives on all sides really need to stop.


> * Steve Lamb <morpheus@no-spam.calweb.com> writes:
>                        ^^^^^^^
> Too dense for procmail, luser? And this is bollocks: 
> Reply-To: morpheus@no-spam.calweb.com


My biggest beef about Pine's newsreader is that it is too slow over an NNTP
connection.

Lack of color support is my second biggest beef.

Third would be no kill/watch capabilities.  For example, in the b5 moderated
group, I slrn configured to score the articles from JMS very highly.  It
puts these threads at the top of my list and I can easly jump through them
using the '!' key.  Pine has not way to do this other than doing a search
each time I go to the group.


My biggest beef about slrn is that it doesn't have a really nice mail reader
to go along with it.  I'm not saying I want slrn to have a mail reader built
in, but I would like a mail reader of slrn's quality available under Win32
like slrn is.

My second biggest beef would be the lack of integrated mime support (which
is a place where Pine excels); however, this is not all that important in
news groups.

My third biggest beef is that there is no built-in configuration editor.
However, the slrn.rc file which comes with the distribution is well
documented, so this isn't a big problem.

-- 
David Risner -- Programmer (Java, CGI, NeXT)
California State University, Los Angeles
Change NOSPAM to ibm in From to e-mail me
http://www.geocities.com/~drisner/

Re: pine vs. slrn - Gnus wins (was: attrib rant -> slrn attribution and commands)
#47009
Author: Steve Lamb
Date: Wed, 03 Mar 1999 00:00
34 lines
2747 bytes
On 03 Mar 1999 08:14:56 +0100, Robin S. Socha
<donotccmeoriwillkillyou@socha.net> wrote:
>* Steve Lamb <morpheus@no-spam.calweb.com> writes:
>                       ^^^^^^^
>Too dense for procmail, luser? And this is bollocks: 
>Reply-To: morpheus@no-spam.calweb.com

    No, not at all.  Call it a large hint that I do *NOT* want responses
from news, perioud.  Besides, when I implimented that no-spam.calweb.com was
a valid domain.  

From <http://www.calweb.com/spam/>:

If you post to the newsgroups, consider posting as
username@ihatebulkemail.calweb.com,username@no-spam.calweb.com, or as
nobody@calweb.com . If we receive any email for
username@ihatebulkemail.calweb.com or username@no-spam.calweb.com,we will
refuse to accept it, with an error message. Any newsgroup postings made with
a completely normal email address will result in spam within mere hours. (On
my test posts, I get spammed within 6-8 hours, and have 5-6 spams in the
first 2 days, on a new account!)

>Experience. The question was:

    You forgot something, here, let me fix it for you.  
s/Experience/In my experience/;

-- 
             Steve C. Lamb             | Opinions expressed by me are not my
    http://www.calweb.com/~morpheus    | employer's.  They hired me for my
             ICQ: 5107343              | skills and labor, not my opinions!
---------------------------------------+-------------------------------------

Re: What slrn's "*" (HEADER_TAGGED) really means.
#47014
Author: Byrial Jensen
Date: Wed, 03 Mar 1999 00:00
22 lines
2011 bytes
Per Abrahamsen <abraham@dina.kvl.dk> wrote:
>bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) writes:
>
>> Robin S. Socha wrote:
>> > True. But slrn and Gnus allow for marking articles as ummm... non-expirable
>> 
>> Actually, slrn's HEADER_TAGGED bit prevents the article's read-status from
>> changing by using the intrinsic commands.  This has nothing to do with
>> expiration (which is strictly controlled by the server).  Newsreaders don't
>> tell servers which articles to expire and which to leave alone.
>
>Well, Gnus will cache ticked articles locally, so the article will not
>expire (as seen from the user) until he removes the tick mark.

And I have non-expirable articles with slrn. I have done it by
patching slrnpull so it never will expire articles which are not
marked as read in my newsrc file.

Regards,
- Byrial

Re: fetching articles off Dejanews with slrn
#47018
Author: John Moreno
Date: Wed, 03 Mar 1999 00:00
31 lines
2417 bytes
Sven Guckes <guckes@math.fu-berlin.de> wrote:

> nm@NoAdsPlease.ii.com (Nancy this-address-is-valid McGough):
> > > Who really has a newsserver with enough disk space for all Usenet?
> > > Well, DejaNews has!   www.dejanews.com
> > If those archives were accessible via IMAP, we could use Pine to access
> > them. This would be infinitely better (IMHO) than the painfully slow
> > process of reading news using a web browser.
> 
> Now, there's an idea.  But this seems to be "Dejavu all over again".
> Didn't the folks at DejaNews say they will not add an IMAP interface?!
> 
> > > Now, where's that slrn slang macro that
> > > fetches expired posts from DejaNews?
> > Is there really such a macro? Does it present the expired article in
> > slrn or does it present it in a browser. Very cool feature though.
> 
> Well, I think I once saw or read about a macro that
> uses "wget" to get the article/page off DejeNews.
> Anyone?

If you can call a browser or make a http requst through slang then it's
easy:

<http://www.dejanews.com/msgid.xp?MID=%3C1slrn7dr5li.edv.guckes@rudin.math.fu-berlin.de%3E>


-- 
John Moreno

Re: fetching expired articles with slrn
#47020
Author: Sven Guckes
Date: Wed, 03 Mar 1999 00:00
19 lines
1893 bytes
nm@NoAdsPlease.ii.com (Nancy this-address-is-valid McGough):
> > slrn has these commands to aid you in finding "previous" articles:
> >       ESC-l	Prompt for message-id and get it from newsserver
> >       ESC-p	Get previous article off the newsserver
> > ESC-1-ESC-p	Reconstruct thread by fetching all referenced articles
> But these only work if the articles haven't expired.

Duh.  Is that the reason why you prefer Pine to Slrn?  Come oooon!

Who really has a newsserver with enough disk space for all Usenet?
Well, DejaNews has!   www.dejanews.com

Now, where's that slrn slang macro that
fetches expired posts from DejaNews?
Anyone?

Sven

Re: pine vs. slrn - slrn wins
#47021
Author: Sven Guckes
Date: Wed, 03 Mar 1999 00:00
56 lines
3661 bytes
drisner@NOSPAM.net (David Risner):
> My biggest beef about Pine's newsreader is that
> it is too slow over an NNTP connection.
> Lack of color support is my second biggest beef.
> Third would be no kill/watch capabilities.

To me there are even more reasons why I do not use Pine:
   http://www.math.fu-berlin.de/~guckes/pine/#why_not

> My biggest beef about slrn is that it doesn't have a really nice mail reader
> to go along with it.

There's the editor "jed" that can also send mails.  This editor was
written by the same guy who wrote slrn.  Coincidence?  I don't think so.

Btw, a newsreader is not supposed to be a mailer.  It's a feature!!

> I'm not saying I want slrn to have a mail reader built in, but I would
> like a mail reader of slrn's quality available under Win32 like slrn is.

Well, "jed" has also been ported to Win32 (I think).  Try it!

> My second biggest beef would be the lack of integrated mime support
> (which is a place where Pine excels); however, this is not all that
> important in news groups.

Exactly - MIME on Usenet is like HTML in Emails - superfluous (usually).

> My third biggest beef is that there is no built-in configuration editor.

With so many editors about - who needs a builtin editor?
That's a good thing[tm] - makes the binary much smaller.
If you want a newsreader with eveything and sugar on top,
well, use M$Explorer or Netscape.  Or Pine for that matter.

> > * Steve Lamb <morpheus@no-spam.calweb.com> writes:
> > "no-spam" - Too dense for procmail, luser?
> Robin S. Socha <donotccmeoriwillkillyou@socha.net> wrote:
> And yours is so much better.  Not everybody has access to procmail.

Girls - procmail is not really the issue here.
The point is that "donotccmeoriwillkillyou@socha.net
is a *valid* address that you can actually reply to
(even though you'll ghet killed by Robin instantly).

I wonder whether you can reply to "drisner@NOSPAM.net", though...

Sven  [reading Usenet posts in COLOR]

-- 
Sven Guckes guckes@math.fu-berlin.de                using SLRN 0.9.4.6 [980211]
SLRN Pages:     http://www.math.fu-berlin.de/~guckes/slrn/     0.9.5.4 [981105]
SLRN Wishlist:  http://www.math.fu-berlin.de/~guckes/slrn/wish.html
SLRN Author:    http://space.mit.edu/~davis/slrn.html John E. Davis aka JED

Re: fetching expired articles with slrn
#47024
Author: Peppe
Date: Wed, 03 Mar 1999 00:00
56 lines
3125 bytes
Thus wrote Sven Guckes <guckes@math.fu-berlin.de>
> Now, where's that slrn slang macro that
> fetches expired posts from DejaNews?
> Anyone?

How about the following:

    define dejanews_mid ()
    {
        variable mid, len, data, command;

        mid = read_mini ("Find which message ID on dejanews", "", "");
        mid = strtrim (mid);
        len = strlen (mid);
        if (mid[0] == '<' & mid[len-1] == '>')
            mid = substr (mid, 2, len-2);
        % Why doesn't this work?
        %mid = str_replace_all (mid, "+", "%");

        % Format a proper query for dejanews:
        data = strcat ("?'MID=%3C", mid);
        data = strcat (data, "%3E&ST=&AH=1'");

        command = strcat ("lynx http://www.dejanews.com/msgid.xp", data);

        () = system (command);
    }

It accepts message Id's with and without surrounding '<' and '>'.s

So far it works well for me, except when the ID contains a "+".
Dejanews needs to have this character substituted by "%" (probably
others as well). I tried to work around it using str_replace_all:

    define str_replace_all (orig, match, replacement)
    {
        while (str_replace (orig, match, replacement))
            orig = ();
        return orig;
    }

Unfortunately this garbles the ID:

before: Z+A5sCBRfm12EwIo@thunderbird-sport.freeserve.co.uk
after:  Z�sCBRfm12EwIo@thunderbird-sport.freeserve.co.uk

Here "+A5" have been replaced by "�". Anybody know why?

Peppe
-- 
Be prepared! That's the Boy Scouts' solemn creed  __/-\__       Preben Guldberg
Be prepared! And be clean in word and deed         (o o) c928400@student.dtu.dk
Don't solicit for your sister, that's not nice oOOo (_) oOOo-------------------
Unless you get a good percentage of her price  --Tom Lehrer: Be Prepared

Re: What slrn's "*" (HEADER_TAGGED) really means.
#47025
Author: Per Abrahamsen
Date: Wed, 03 Mar 1999 00:00
14 lines
2114 bytes
bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) writes:

> Robin S. Socha wrote:
> > True. But slrn and Gnus allow for marking articles as ummm... non-expirable
> 
> Actually, slrn's HEADER_TAGGED bit prevents the article's read-status from
> changing by using the intrinsic commands.  This has nothing to do with
> expiration (which is strictly controlled by the server).  Newsreaders don't
> tell servers which articles to expire and which to leave alone.

Well, Gnus will cache ticked articles locally, so the article will not
expire (as seen from the user) until he removes the tick mark.

Re: slrn - separate color for each quote level -> vim
#47029
Author: Sven Guckes
Date: Wed, 03 Mar 1999 00:00
14 lines
1784 bytes
donotccmeoriwillkillyou@socha.net (Robin S. Socha):
> That's because your newsreader isn't coloured:
> <http://socha.net/Gnus/screenshots/article.html>
> is what you really want. Shut up, Sven -
> unless I'm completely mistaken, slrn doesn't
> colour more than one level of quotes.

Well - not yet.  But Vim does which makes it easy
to read articles (pipe to "vim -") and reformat them ("gq")
to make them fit onto 80 char lines still after quoting.

Sven

Re: fetching expired articles with slrn
#47033
Author: Nancy this-address-is-valid McGo...
Date: Wed, 03 Mar 1999 00:00
39 lines
2831 bytes
On 3 Mar 1999, Sven Guckes <guckes@math.fu-berlin.de> wrote:
>
> nm@NoAdsPlease.ii.com (Nancy this-address-is-valid McGough):
> > But these only work if the articles haven't expired.
> 
> Duh.  Is that the reason why you prefer Pine to Slrn?  Come oooon!

This part of the discussion was about whether one should include the
date in the attribution line. I said I like the date to be there
because it makes it easier to track down the original article if it
has expired. You said slrn has all these great commands that will get
you to the article. That's very cool but all I was saying is that it
doesn't help if the article has expired. So I stand by my original
statement that it's nice to include the date in the attribution line.


> Who really has a newsserver with enough disk space for all Usenet?
> Well, DejaNews has!   www.dejanews.com

If those archives were accessible via IMAP, we could use Pine to
access them. This would be infinitely better (IMHO) than the painfully
slow process of reading news using a web browser.


> Now, where's that slrn slang macro that
> fetches expired posts from DejaNews?

Is there really such a macro? Does it present the expired article in
slrn or does it present it in a browser. Very cool feature though.


-- 
For Pine info and links, see www.ii.com/internet/messaging/pine/
 
�Nancy McGough           http://www.ii.com           Infinite Ink
--= Posted via PINE: Power Internet News & Email for Win/Unix =--


Re: fetching articles off Dejanews with slrn
#47034
Author: Peppe
Date: Wed, 03 Mar 1999 00:00
25 lines
2204 bytes
Thus wrote John Moreno <planb@newsreaders.com>
> If you can call a browser or make a http requst through slang then it's
> easy:

> <http://www.dejanews.com/msgid.xp?MID=%3C1slrn7dr5li.edv.guckes@rudin.math.fu-berlin.de%3E>

Hmm, making a manual entry, dejanews seems to add "&ST=&AH=1" to such
an URL. Probably some extra info in the form.

For those who saw my other post, and intend to use the small script
therein, an optional tiny diff:

15c15
<     data = strcat (data, "%3E&ST=&AH=1'");
---
>     data = strcat (data, "%3E'");

Peppe
-- 
Preben Guldberg         __/-\__     Q:  How many Microsoft employees does
c928400@student.dtu.dk   (o o)          it take to change a lightbulb?
---------------------oOOo (_) oOOo  A:  Just one.
http://www.student.dtu.dk/~c928400      They're good at screwing things up.

Re: pine vs. slrn - Gnus wins (was: attrib rant -> slrn attribution and commands)
#47037
Author: Robin S. Socha
Date: Wed, 03 Mar 1999 00:00
23 lines
2221 bytes
* Steve Lamb <morpheus@no-spam.calweb.com> writes:
                       ^^^^^^^
Too dense for procmail, luser? And this is bollocks: 
Reply-To: morpheus@no-spam.calweb.com

> On 02 Mar 1999 19:36:08 +0100, Robin S. Socha wrote:
>> Nancy McGough wrote:
>> That's because your newsreader isn't coloured:
> And... what?  Of what use is that?  If I'm not mistaken, GNUS parses the
> multiple (ICK!) colors from the level of >'s at the front.  If people
> can't trim (or read) attributions correctly based on the number of >'s
> (which is kinda intuitive, if you ask me), what makes you think color is
> going to help any?

Experience. The question was:

|>>> I agree and to me it seems harder to figure out what attribution line
|>>> goes with what text when there are blank lines.

--  
Robin S. Socha  <http://socha.net/>

Re: fetching articles off Dejanews with slrn
#47038
Author: Sven Guckes
Date: Wed, 03 Mar 1999 00:00
22 lines
2134 bytes
nm@NoAdsPlease.ii.com (Nancy this-address-is-valid McGough):
> > Who really has a newsserver with enough disk space for all Usenet?
> > Well, DejaNews has!   www.dejanews.com
> If those archives were accessible via IMAP, we could use Pine to access them.
> This would be infinitely better (IMHO) than the painfully slow process of
> reading news using a web browser.

Now, there's an idea.  But this seems to be "Dejavu all over again".
Didn't the folks at DejaNews say they will not add an IMAP interface?!

> > Now, where's that slrn slang macro that
> > fetches expired posts from DejaNews?
> Is there really such a macro? Does it present the expired article in
> slrn or does it present it in a browser. Very cool feature though.

Well, I think I once saw or read about a macro that
uses "wget" to get the article/page off DejeNews.
Anyone?

Sven

Re: pine vs. slrn - Gnus wins (was: attrib rant -> slrn attribution and commands)
#47042
Author: Steve Lamb
Date: Wed, 03 Mar 1999 00:00
33 lines
2754 bytes
On Wed, 03 Mar 1999 08:56:17 GMT, David Risner <drisner@NOSPAM.net> wrote:
>And yours is so much better.  Not everybody has access to procmail.

    Nor does everyone want to.  See Exim someday.  ;)
		
>My biggest beef about slrn is that it doesn't have a really nice mail reader
>to go along with it.  I'm not saying I want slrn to have a mail reader built
>in, but I would like a mail reader of slrn's quality available under Win32
>like slrn is.

    Mutt hasn't been ported?  I'd think it would have been.  Look at PMMail.
Personally that is what I use.

>My second biggest beef would be the lack of integrated mime support (which
>is a place where Pine excels); however, this is not all that important in
>news groups.

    Exactly.
		
>My third biggest beef is that there is no built-in configuration editor.
>However, the slrn.rc file which comes with the distribution is well
>documented, so this isn't a big problem.

    It really isn't.  It is about the only think that I'm not too keen on,
but a well documented rc file does me fine.

-- 
             Steve C. Lamb             | Opinions expressed by me are not my
    http://www.calweb.com/~morpheus    | employer's.  They hired me for my
             ICQ: 5107343              | skills and labor, not my opinions!
---------------------------------------+-------------------------------------

Re: fetching expired articles with slrn
#47051
Author: Curt Welch
Date: Thu, 04 Mar 1999 00:00
23 lines
2255 bytes
guckes@math.fu-berlin.de (Sven Guckes) wrote:
> Who really has a newsserver with enough disk space for all Usenet?
> Well, DejaNews has!   www.dejanews.com

Well, I'm sure Dejanews has a lot of disk space for news.  But
it's not a big deal really.  They don't archive the Binary posts.
Usenet is around 30GB/day these days.  But if you only look at
the articles under 10K in size, you find they only add up to about
1GB/day of news.  Building a server which has a very long retention of
the small articles is simple when compared to what "real" usenet
servers have to do these days.

Usenet volume has more than doubled every year.  So If you build a server
large enough to hold one year of small articles (200GB I think would do
it for the past year).  Then all you have to do is double that size to hold
every small article ever posted to Usenet.  400GB news servers are very
common these days.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/

Re: fetching expired articles with slrn
#47052
Author: Peppe
Date: Thu, 04 Mar 1999 00:00
47 lines
2681 bytes
Thus wrote Peppe <c928400@student.dtu.dk>
> For those who would like to use the script, here it is again (hopefully in
> the right shape by now :-)

Oops, wrong key when recalling the article :-(

Here we go.

I included JED's corrections and discarded the call to
str_replace_all().

Also John Moreno pointed out indirectly that I had used some extra,
seemingly irrelevant, info to the URL.

    define dejanews_mid ()
    {
        variable mid, len, data, command;

        mid = read_mini ("Find which message ID on dejanews", "", "");
        mid = strtrim (mid);
        len = strlen (mid);
        if (len == 0)
            return;
        if (mid[0] == '<' and mid[len-1] == '>')
            mid = substr (mid, 2, len-2);

        % Format a proper query for dejanews:
        while (str_replace (mid, "+", "%2B"))
            mid = ();
        data = strcat ("?'MID=%3C", mid);
        data = strcat (data, "%3E'");

        command = strcat ("lynx http://www.dejanews.com/msgid.xp", data);

        () = system (command);
    }

Thanks for the help.

Peppe
-- 
Preben Guldberg          __/-\__
c928400@student.dtu.dk    (o o)        Fare thee well! and if for ever,
----------------------oOOo (_) oOOo    Still for ever, fare thee well.
http://www.student.dtu.dk/~c928400/    --Byron (1788-1824)

Re: fetching expired articles with slrn
#47054
Author: John E. Davis
Date: Thu, 04 Mar 1999 00:00
66 lines
3336 bytes
On 3 Mar 99 20:26:13 GMT, Peppe <c928400@student.dtu.dk>
wrote:
>How about the following:
>
>    define dejanews_mid ()
>    {
>        variable mid, len, data, command;
>
>        mid = read_mini ("Find which message ID on dejanews", "", "");
>        mid = strtrim (mid);
>        len = strlen (mid);

   I would modify this to return is len == 0, otherwise mid[0] will
   result in a range error:
   
         if (len == 0)
	   return;

>        if (mid[0] == '<' & mid[len-1] == '>')
>            mid = substr (mid, 2, len-2);

   Here you need to use 'and' instead of '&':
   
         if ((mid[0] == '<') and (mid[len-1] == '>'))
	   mid = substr(mid, 2, len-1);

   Also, if you are using a 1.3.x version of slang, you can use:

         if ((mid[0] == '<') and (mid[-1] == '>'))
	   mid = mid[[1:len-2]];

   
>        % Why doesn't this work?
>        %mid = str_replace_all (mid, "+", "%");

   It should work.  See below.

[...]
>So far it works well for me, except when the ID contains a "+".
>Dejanews needs to have this character substituted by "%" (probably
>others as well). I tried to work around it using str_replace_all:
[...]
>before: Z+A5sCBRfm12EwIo@thunderbird-sport.freeserve.co.uk
>after:  Z�sCBRfm12EwIo@thunderbird-sport.freeserve.co.uk
>
>Here "+A5" have been replaced by "�". Anybody know why?

The result should have been:

   Z%A5sCBRfm12EwIo@thunderbird-sport.freeserve.co.uk

Is it possible that lynx is expanding "%A5" (although I would guess
that � is produced by %BE, but this difference may be due to character
set translations)?  Perhaps you should try using, e.g.,

    mid = str_replace_all (mid, "+", "%25");

so that lynx expands "%25" to "%".


-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    One Hampshire St., Building NE80-6019
http://space.mit.edu/~davis     Cambridge, MA  02139-4307

Re: pine vs. slrn - slrn wins
#47061
Author: Christopher Browne
Date: Thu, 04 Mar 1999 00:00
68 lines
4057 bytes
On 3 Mar 1999 11:22:12 GMT, Sven Guckes <guckes@math.fu-berlin.de> wrote:
>drisner@NOSPAM.net (David Risner):
>> My biggest beef about Pine's newsreader is that
>> it is too slow over an NNTP connection.
>> Lack of color support is my second biggest beef.
>> Third would be no kill/watch capabilities.
>
>To me there are even more reasons why I do not use Pine:
>   http://www.math.fu-berlin.de/~guckes/pine/#why_not
>
>> My biggest beef about slrn is that it doesn't have a really nice mail reader
>> to go along with it.
>
>There's the editor "jed" that can also send mails.  This editor was
>written by the same guy who wrote slrn.  Coincidence?  I don't think so.
>
>Btw, a newsreader is not supposed to be a mailer.  It's a feature!!

True, and that of course agrees with David's next statement....

>> I'm not saying I want slrn to have a mail reader built in, but I would
>> like a mail reader of slrn's quality available under Win32 like slrn is.
>
>Well, "jed" has also been ported to Win32 (I think).  Try it!

The mail client that seems to be most comparable to slrn is "Mutt."
<http://www.mutt.org/>

- It uses S-LANG, just like slrn
- It has a user interface that works a whole lot like slrn

I don't know if it has a Win32 port. 

>> My second biggest beef would be the lack of integrated mime support
>> (which is a place where Pine excels); however, this is not all that
>> important in news groups.
>
>Exactly - MIME on Usenet is like HTML in Emails - superfluous
>(usually). 

But MIME in email is a different story; that *can* be quite appropriate.

>> My third biggest beef is that there is no built-in configuration
>> editor. 
>
>With so many editors about - who needs a builtin editor?
>That's a good thing[tm] - makes the binary much smaller.
>If you want a newsreader with eveything and sugar on top,
>well, use M$Explorer or Netscape.  Or Pine for that matter.

I don't think that's the issue.  It would be perfectly fine to spawn a
configuration editor as a separate process. 

The point is that there's nothing that provides a *structured* way of
editing the configuration.  

A text editor provides a completely unstructured way to do so; it would
be quite nice to have something like unto the "dotfile editor" that
exists for .emacs, .fvwmrc, .cshrc, and other such, or perhaps something
like the structured config editor provided in recent editions of GNU
Emacs (and likely XEmacs). 
-- 
"The problem might possibly be to do with the fact that asm code written
for the x86 environment is, on other platforms, about as much use as a
pork pie at a jewish wedding."-  Andrew Gierth in comp.unix.programmer
cbbrowne@ntlug.org- <http://www.hex.net/~cbbrowne/ipnntp.html>

Re: pine vs. slrn - slrn wins
#47071
Author: Heikki Kantola
Date: Thu, 04 Mar 1999 00:00
22 lines
2255 bytes
Sven Guckes <guckes@math.fu-berlin.de> informed
news.software.readers with the following:
>drisner@NOSPAM.net (David Risner):
>> My second biggest beef would be the lack of integrated mime support
>> (which is a place where Pine excels); however, this is not all that
>> important in news groups.
>
>Exactly - MIME on Usenet is like HTML in Emails - superfluous (usually).

If we think about MIME in its broadest sense, I would say there's some
use for MIME in news too, having MIME-headers telling us what charset
the message uses is Good Thing[tm], although it's indeed questionable
if things like multipart messages and often needless encodings belong 
to news...
 
-- 
Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI>
L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.

Re: fetching expired articles with slrn
#47080
Author: Peppe
Date: Thu, 04 Mar 1999 00:00
65 lines
3229 bytes
Thus wrote John E. Davis <davis@space.mit.edu>
> On 3 Mar 99 20:26:13 GMT, Peppe <c928400@student.dtu.dk>
> wrote:
[--- snip ---]
> >        len = strlen (mid);

>    I would modify this to return is len == 0, otherwise mid[0] will
>    result in a range error:

>          if (len == 0)
> 	   return;

thanks for pointing this out.

> >        if (mid[0] == '<' & mid[len-1] == '>')
> >            mid = substr (mid, 2, len-2);

>    Here you need to use 'and' instead of '&':

Hmm, it worked. Back to the docs.

>    Also, if you are using a 1.3.x version of slang, you can use:

>          if ((mid[0] == '<') and (mid[-1] == '>'))
> 	   mid = mid[[1:len-2]];

Neat. Still 1.2.2 here, though.

> >        % Why doesn't this work?
> >        %mid = str_replace_all (mid, "+", "%");

>    It should work.  See below.

[--- snip ---]

> The result should have been:

>    Z%A5sCBRfm12EwIo@thunderbird-sport.freeserve.co.uk

I thought so :-)

> Is it possible that lynx is expanding "%A5" (although I would guess
> that � is produced by %BE, but this difference may be due to character
> set translations)?  Perhaps you should try using, e.g.,

>     mid = str_replace_all (mid, "+", "%25");

> so that lynx expands "%25" to "%".

Let me see... Seems as if I got dejanews encoding wrong. It should be "%2B"
instead. Is it possible to find these encoding somewhere?


For those who would like to use the script, here it is again (hopefully in
the right shape by now :-)



-- 
Preben Guldberg   c928400@student.dtu.dk   http://www.student.dtu.dk/~c928400/
  If you're looking for adventure of a new and different kind, And you
  come across a Girl Scout who is similarly inclined, Don't be nervous,
  don't be flustered, don't be scared. Be prepared!  --Tom Lehrer: Be Prepared

Re: fetching articles off Dejanews with slrn
#47097
Author: Sylvan Butler
Date: Fri, 05 Mar 1999 00:00
17 lines
2023 bytes
On 3 Mar 99 20:52:33 GMT, Peppe <c928400@student.dtu.dk> wrote:
>Hmm, making a manual entry, dejanews seems to add "&ST=&AH=1" to such
>an URL. Probably some extra info in the form.

yes, they just recently started adding that.  Seems to have something to
do with the interface you used to enter the search (for example, power
search vs the normal).  From what I've seen, the old still works.

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
 "Don't Tread On Me!"

Re: pine vs. slrn - Gnus wins (was: attrib rant -> slrn attribution and commands)
#47132
Author: Hubert Figuiere
Date: Sat, 06 Mar 1999 00:00
26 lines
2247 bytes
Steve Lamb <morpheus@no-spam.calweb.com> wrote :

><donotccmeoriwillkillyou@socha.net> wrote:
>>* Steve Lamb <morpheus@no-spam.calweb.com> writes:
>>                       ^^^^^^^
>>Too dense for procmail, luser? And this is bollocks: 
>>Reply-To: morpheus@no-spam.calweb.com
>
>    No, not at all.  Call it a large hint that I do *NOT* want responses
>from news, perioud.  Besides, when I implimented that no-spam.calweb.com was
>a valid domain.  

Add the header line "Mail-Copies-To: never" ('nobody' instead of
'never' works also). Any serious newsreader will honour it (at
least slrn, GNUS, MacSOUP, NewsWatcher, Gravity, etc.). This a
good way to implement the "I don't want courtesy e-mail copy of
news follow-ups".

Hope this clarify :-)


Hub
-- 
World Wide Wait: the real meaning for WWW.

Re: fetching expired articles with slrn
#47135
Author: Adam Bailey
Date: Sun, 07 Mar 1999 00:00
23 lines
1806 bytes
c928400@student.dtu.dk wrote:
> Thus wrote Peppe <c928400@student.dtu.dk>
> > For those who would like to use the script, here it is again (hopefully in
> > the right shape by now :-)
> 
> Oops, wrong key when recalling the article :-(
> 
> Here we go.

I'm afraid I have no experience setting up slrn to use a s-lang script,
and Ohio State's web server isn't answering me.

Can someone explain, in simple terms, how to put in the script you wrote?

TIA...

-- 
Adam Bailey    | Chicago, Illinois
adamb@lull.org | "Logic is the art of going wrong with
adamkb@aol.com |  confidence." - George Bernard Shaw
Finger for PGP | http://www.lull.org/adam/

Re: fetching expired articles with slrn
#47141
Author: Adam Bailey
Date: Sun, 07 Mar 1999 00:00
18 lines
1785 bytes
c928400@student.dtu.dk wrote:
> Thus wrote Adam Bailey <adamb@lull.org>
>> I'm afraid I have no experience setting up slrn to use a s-lang script,
>> and Ohio State's web server isn't answering me.
> 
>> Can someone explain, in simple terms, how to put in the script you wrote?
> 
> Sure.

Thanks for the instructions. It works like a charm, very cool.

-- 
Adam Bailey    | Chicago, Illinois
adamb@lull.org | "Logic is the art of going wrong with
adamkb@aol.com |  confidence." - George Bernard Shaw
Finger for PGP | http://www.lull.org/adam/

Re: fetching expired articles with slrn
#47148
Author: Adam Bailey
Date: Mon, 08 Mar 1999 00:00
18 lines
1992 bytes
planb@newsreaders.com (John Moreno) wrote:
> BTW -- if you're looking for the same thing on the mac, check out the
> mac section on newsreaders.com -- you can do something very similar
> using ADDs (Apple Data Detector's).  Well not quite the same thing, you
> have to keep the mid around some way or another.

If you'll recall from November, I wasn't able to get that ADD to work. You
were helping me debug it in email, but I got sidetracked and haven't had a
chance to modify the ADD in AppleScript as requested. One of these days
I'll get back to it...

-- 
Adam Bailey    | Chicago, Illinois
adamb@lull.org | "Logic is the art of going wrong with
adamkb@aol.com |  confidence." - George Bernard Shaw
Finger for PGP | http://www.lull.org/adam/

Re: fetching expired articles with slrn
#47153
Author: John Moreno
Date: Mon, 08 Mar 1999 00:00
22 lines
2170 bytes
Adam Bailey <adamb@lull.org> wrote:

> Peppe <c928400@student.dtu.dk> wrote:
> >        while (str_replace (mid, "+", "%2B"))
> 
> How do you add in a second URL-encoded substitution here? I regularly run
> into Message-IDs which use the % character (thanks to YANW), which needs to
> be URL-encoded to %25. I tried adding in a second line like the above
> (actually, I preceeded it, so the %2B wouldn't end up being %252B), but it
> gave me an error.

YANW got that from the current USEFOR recommendation for making a mid.

BTW -- if you're looking for the same thing on the mac, check out the
mac section on newsreaders.com -- you can do something very similar
using ADDs (Apple Data Detector's).  Well not quite the same thing, you
have to keep the mid around some way or another.

-- 
John Moreno

Re: fetching expired articles with slrn
#47157
Author: Peppe
Date: Mon, 08 Mar 1999 00:00
38 lines
2571 bytes
Thus wrote Adam Bailey <adamb@lull.org>

> I'm afraid I have no experience setting up slrn to use a s-lang script,
> and Ohio State's web server isn't answering me.

> Can someone explain, in simple terms, how to put in the script you wrote?

Sure.

Put the function in a file (add as many functions as you please). I
use .slrnrc.sl.

Then you need to source this file to load the functions. This is done
by putting the following line in your .slrnrc:

    interpret .slrnrc.sl

Now you map the function to a key. I use "M" in both group and article
mode:
 
    setkey group	dejanews_mid		"M"
    setkey article	dejanews_mid		"M"

This must follow the "interpret" line.

The mapping canalso be done in the file you source (an intrinsic slrn
function). I prefer to keep all my mappings in the same file, though.

Hope this helps,

Peppe
-- 
"There are two kind of people in the world, __/-\__         Preben Guldberg
 my friend. Those with a rope around the     (o o)   c928400@student.dtu.dk
 neck and those who do the cutting."    -oOOo (_) oOOo---------------------
--Il buono, il brutto, il cattivo       http://www.student.dtu.dk/~c928400/

Re: fetching expired articles with slrn
#47158
Author: John Moreno
Date: Mon, 08 Mar 1999 00:00
22 lines
2239 bytes
Adam Bailey <adamb@lull.org> wrote:

> planb@newsreaders.com (John Moreno) wrote:
> > BTW -- if you're looking for the same thing on the mac, check out the
> > mac section on newsreaders.com -- you can do something very similar
> > using ADDs (Apple Data Detector's).  Well not quite the same thing, you
> > have to keep the mid around some way or another.
> 
> If you'll recall from November, I wasn't able to get that ADD to work. You
> were helping me debug it in email, but I got sidetracked and haven't had a
> chance to modify the ADD in AppleScript as requested. One of these days
> I'll get back to it...

Well, not until I found one of the old messages to read (bad memory I
guess).

Ah well, maybe someone else will benefit from hearing about it.

-- 
John Moreno

Re: pine vs. slrn - Gnus wins (was: attrib rant -> slrn attribution and commands)
#47162
Author: Steve Lamb
Date: Mon, 08 Mar 1999 00:00
27 lines
2556 bytes
On Sat, 6 Mar 1999 11:22:03 +0100, Hubert Figuiere <hfiguiere@teaser.fr>
wrote:
>Steve Lamb <morpheus@no-spam.calweb.com> wrote :
>>    No, not at all.  Call it a large hint that I do *NOT* want responses
>>from news, perioud.  Besides, when I implimented that no-spam.calweb.com was
>>a valid domain.  

>Add the header line "Mail-Copies-To: never" ('nobody' instead of
>'never' works also). Any serious newsreader will honour it (at
>least slrn, GNUS, MacSOUP, NewsWatcher, Gravity, etc.). This a
>good way to implement the "I don't want courtesy e-mail copy of
>news follow-ups".

>Hope this clarify :-)

    No.  I didn't say I didn't want CCs, I said I don't want *any* email
from news.  My feed is good enough and my scoring good enough that I'll
catch 99% of the replies.  What you pointed out discourages CCs, not email
replies overall.

-- 
             Steve C. Lamb             | Opinions expressed by me are not my
    http://www.calweb.com/~morpheus    | employer's.  They hired me for my
             ICQ: 5107343              | skills and labor, not my opinions!
---------------------------------------+-------------------------------------

Re: fetching expired articles with slrn
#47164
Author: Adam Bailey
Date: Mon, 08 Mar 1999 00:00
16 lines
1768 bytes
Peppe <c928400@student.dtu.dk> wrote:
>        while (str_replace (mid, "+", "%2B"))

How do you add in a second URL-encoded substitution here? I regularly run
into Message-IDs which use the % character (thanks to YANW), which needs to
be URL-encoded to %25. I tried adding in a second line like the above
(actually, I preceeded it, so the %2B wouldn't end up being %252B), but it
gave me an error.

-- 
Adam Bailey    | Chicago, Illinois
adamb@lull.org | "Logic is the art of going wrong with
adamkb@aol.com |  confidence." - George Bernard Shaw
Finger for PGP | http://www.lull.org/adam/

Re: fetching expired articles with slrn
#47172
Author: John E. Davis
Date: Tue, 09 Mar 1999 00:00
10 lines
1653 bytes
On 9 Mar 99 20:26:08 GMT, Peppe <c928400@student.dtu.dk>
wrote:
>I tried it. Just hung on the empty status line for quite a while. Had
>to kill slrn. Odd.

Did you press ^G to abort the macro?

--John

Re: fetching expired articles with slrn
#47175
Author: Peppe
Date: Tue, 09 Mar 1999 00:00
21 lines
2255 bytes
Thus wrote Adam Bailey <adamb@lull.org>
> Peppe <c928400@student.dtu.dk> wrote:
> >        while (str_replace (mid, "+", "%2B"))

> How do you add in a second URL-encoded substitution here? I regularly run
> into Message-IDs which use the % character (thanks to YANW), which needs to
> be URL-encoded to %25. I tried adding in a second line like the above
> (actually, I preceeded it, so the %2B wouldn't end up being %252B), but it
> gave me an error.

I tried it. Just hung on the empty status line for quite a while. Had
to kill slrn. Odd.

Peppe
-- 
People ask me how I do it,                 __/-\__         Preben Guldberg
And I say "There's nothin' to it,           (o o)   c928400@student.dtu.dk
You just stand there lookin' cute,      oOOo (_) oOOo---------------------
And when something moves, you shoot!"   --Tom Lehrer: The Hunting Song

Re: fetching expired articles with slrn
#47194
Author: Peppe
Date: Wed, 10 Mar 1999 00:00
79 lines
3878 bytes
Thus wrote John E. Davis <davis@space.mit.edu>
> On 9 Mar 99 20:26:08 GMT, Peppe <c928400@student.dtu.dk>
> wrote:
> >I tried it. Just hung on the empty status line for quite a while. Had
> >to kill slrn. Odd.

> Did you press ^G to abort the macro?

Thought I did. I must have pressed ^C instead.

Anyway, being used to direct global substitution, the looping way of
doing it in slang caused the confusion:

    while (str_replace (mid, "%", "%25"))
        mid = ();

Filling up with 252525..., I guess the string becomes too long at some
point :-)

Assuming that the string "___25___" will not occur in a message ID, I
have come up with the following:

---------------------------------------------------------------------------
% Get an expired message from dejanews.
% Written by Preben "Peppe" Guldberg <c928400@student.dtu.dk>
define dejanews_mid ()
{
    variable mid, len, data, command;

    mid = read_mini ("Find which message ID on dejanews", "", "");
    mid = strtrim (mid);
    len = strlen (mid);
    if (len == 0)
        return;
    if (mid[0] == '<' and mid[len-1] == '>')
        mid = substr (mid, 2, len-2);

    % Format a proper query for dejanews:
    while (str_replace (mid, "%", "___25___"))
        mid = ();
    while (str_replace (mid, "___25___", "%25"))
        mid = ();
    while (str_replace (mid, "+", "%2B"))
        mid = ();
    data = strcat ("?'MID=%3C", mid);
    data = strcat (data, "%3E'");

    command = strcat ("lynx http://www.dejanews.com/msgid.xp", data);

    () = system (command);
}
% Bind this function to a key (M) for use in article mode.
definekey ("dejanews_mid", "M", "article");
---------------------------------------------------------------------------

[Posted in full for those who might use it. Including keybindings this
time]


Btw, I noticed that 

    setkey article	dejanews_mid		"M"

will bind the function to both "M" and "m" if "m" is not bound
already.

A quick test shows that definekey() works the same (which could be
expected).

Any reason for this behaviour?

Peppe
-- 
He gives the kids free samples,        __/-\__         Preben Guldberg
Because he knows full well              (o o)   c928400@student.dtu.dk
That today's young innocent faces   oOOo (_) oOOo---------------------
Will be tomorrow's clientele.       --Tom Lehrer: The Old Dope Peddler

Re: fetching expired articles with slrn
#47197
Author: Adam Bailey
Date: Wed, 10 Mar 1999 00:00
19 lines
1892 bytes
Peppe <c928400@student.dtu.dk> wrote:
>Anyway, being used to direct global substitution, the looping way of
>doing it in slang caused the confusion:
>
>    while (str_replace (mid, "%", "%25"))
>        mid = ();
>
>Filling up with 252525..., I guess the string becomes too long at some
>point :-)

Works like a charm on message IDs with the % symbol. Thanks.

-- 
Adam Bailey    | Chicago, Illinois
adamb@lull.org | "Logic is the art of going wrong with
adamkb@aol.com |  confidence." - George Bernard Shaw
Finger for PGP | http://www.lull.org/adam/

Re: fetching expired articles with slrn
#47202
Author: Peppe
Date: Wed, 10 Mar 1999 00:00
33 lines
2479 bytes
Thus wrote John E. Davis <davis@space.mit.edu>
> On 10 Mar 99 00:43:15 GMT, Peppe <c928400@student.dtu.dk>
> wrote:
> >Btw, I noticed that 

> >    setkey article	dejanews_mid		"M"

> >will bind the function to both "M" and "m" if "m" is not bound
> >already.

>   It is a convenient feature.  That is about all I can say about it.

Convinient, perhaps, still surprising to me.

In case I wanted to turn it off, how should I do it? Binding it a
function that does nothing?

>   Here is some code that will search via altavista.  It performs a
> similar task to what you are trying to achieve:

> define altavista_search ()

Thanks. I don't get all of it, but I will definetely have a further
look at it.

Peppe
-- 
Preben Guldberg         __/-\__
c928400@student.dtu.dk   (o o)        I am a deeply superficial person.
-------------------- oOOo (_) oOOo    --Andy Warhol
http://www.student.dtu.dk/~c928400

Re: fetching expired articles with slrn
#47206
Author: John E. Davis
Date: Wed, 10 Mar 1999 00:00
57 lines
2835 bytes
On 10 Mar 99 00:43:15 GMT, Peppe <c928400@student.dtu.dk>
wrote:
>Anyway, being used to direct global substitution, the looping way of
>doing it in slang caused the confusion:

   See below for another solution.

>Btw, I noticed that 
>
>    setkey article	dejanews_mid		"M"
>
>will bind the function to both "M" and "m" if "m" is not bound
>already.

  It is a convenient feature.  That is about all I can say about it.

  Here is some code that will search via altavista.  It performs a
similar task to what you are trying to achieve:

define altavista_search ()
{
   variable browser = "lynx";
   variable url = "http://www.altavista.digital.com/";
   variable cgi = "cgi-bin/query?pg=q&what=news&fmt=.&q=";
   variable str, new_str, len, ch, chlo, i;
   variable cmd;
   
   str = "+newsgroups:" + current_newsgroup () + str + " +"
   str = read_mini ("AltaVista Search", "", str);
   
   len = strlen (str);
   !if (len) return;
   
   new_str = "";
   for (i = 0; i < len; i++)
     {
	ch = str [i];
	chlo = ch | 0x20;
	if ((chlo > 'z') or (chlo < 'a'))
	  ch = sprintf ("%%%02X", ch);
	else 
	  ch = char (ch);
	
	new_str = strcat (new_str, ch);
     }
   
   cmd = sprintf ("%s '%s%s%s'", browser, url, cgi, new_str);
   () = system (cmd);
}


  




Re: fetching expired articles with slrn
#47214
Author: Peppe
Date: Thu, 11 Mar 1999 00:00
29 lines
2737 bytes
Thus wrote John E. Davis <davis@space.mit.edu>

[--- snip --- upper andlower case match if no exact match ---]

> You may ask why this is a
> feature.  Consider an editor that uses the keymap routines (jed). Now,
> jed binds `Ctrl-X u' to its undo function.  Suppose that the user has
> the capslock key set so that pressing `u' results in `U'.  Should the
> user be forced to turn off capslock to perform the undo function?  Of
> course the answer is no.

Well, I guess I'm a "do or die" person on these matters :-)
When I make a specific choice (as I expected it to be), I expect just
that and nothing more.

> I could have bound both `Ctrl-X u' and
> `Ctrl-X U' to the undo function, but this would have been wasteful by
> requiring twice as much memory.

Following the rationale through is good, of course.

Peppe
-- 
Preben Guldberg          __/-\__    today is grey skies
c928400@student.dtu.dk    (o o)     tomorrow 's tears
----------------------oOOo (_) oOOo you'll have to wait 'til yesterday is here
http://www.student.dtu.dk/~c928400/                                --Tom Waits

Re: fetching expired articles with slrn
#47228
Author: John E. Davis
Date: Thu, 11 Mar 1999 00:00
19 lines
2437 bytes
On 10 Mar 99 20:25:14 GMT, Peppe <c928400@student.dtu.dk>
wrote:
>In case I wanted to turn it off, how should I do it? Binding it a
>function that does nothing?

   That is currently the only way to do it since the keymap routines
look for an exact match, then try look for an upper or lower case
match if an exact match does not exist.  You may ask why this is a
feature.  Consider an editor that uses the keymap routines (jed). Now,
jed binds `Ctrl-X u' to its undo function.  Suppose that the user has
the capslock key set so that pressing `u' results in `U'.  Should the
user be forced to turn off capslock to perform the undo function?  Of
course the answer is no.  I could have bound both `Ctrl-X u' and
`Ctrl-X U' to the undo function, but this would have been wasteful by
requiring twice as much memory.

--John

Re: fetching expired articles with slrn
#47239
Author: John E. Davis
Date: Fri, 12 Mar 1999 00:00
17 lines
2104 bytes
On 12 Mar 1999 17:24:01 GMT, Adam Bailey <adamb@lull.org>
wrote:
>S-Lang Error: Syntax Error: Expecting ;: found 'str', line 44, file: /home/adamb/.slrnrc.sl
>S-Lang Error: Syntax Error: called from line 44, file: /home/adamb/.slrnrc.sl
>slrn fatal error: /home/adamb/.slrnrc: Error encountered processing line 5
>interpret .slrnrc.sl
>
>Line 44, as best I can tell, is:
>
>   str = read_mini ("AltaVista Search", "", str);


Add a `;' to the end of line 43.  Sorry about that.

--John

Re: fetching expired articles with slrn
#47243
Author: Adam Bailey
Date: Fri, 12 Mar 1999 00:00
26 lines
2345 bytes
John E. Davis <davis@space.mit.edu> wrote:
>On 12 Mar 1999 17:24:01 GMT, Adam Bailey <adamb@lull.org>
>wrote:
>>S-Lang Error: Syntax Error: Expecting ;: found 'str', line 44, file: /home/adamb/.slrnrc.sl
>>S-Lang Error: Syntax Error: called from line 44, file: /home/adamb/.slrnrc.sl
>>slrn fatal error: /home/adamb/.slrnrc: Error encountered processing line 5
>>interpret .slrnrc.sl
>>
>>Line 44, as best I can tell, is:
>>
>>   str = read_mini ("AltaVista Search", "", str);
>
>
>Add a `;' to the end of line 43.  Sorry about that.

Okay, that allows me to get into the program, but running it gives me a:

 S-Lang Error: Variable Uninitialized: Error while executing altavista_search

-- 
Adam Bailey    | Chicago, Illinois
adamb@lull.org | "Logic is the art of going wrong with
adamkb@aol.com |  confidence." - George Bernard Shaw
Finger for PGP | http://www.lull.org/adam/

Re: fetching expired articles with slrn
#47244
Author: Adam Bailey
Date: Fri, 12 Mar 1999 00:00
26 lines
2270 bytes
John E. Davis <davis@space.mit.edu> wrote:
>Here is some code that will search via altavista.  It performs a
>similar task to what you are trying to achieve:

This chokes on me. Attempting to run slrn gives me the following error:

slrn 0.9.5.4 (Mar  8 1999 14:44:26)

Reading startup file /home/adamb/.slrnrc.
loading /home/adamb/.slrnrc.sl
S-Lang Error: Syntax Error: Expecting ;: found 'str', line 44, file: /home/adamb/.slrnrc.sl
S-Lang Error: Syntax Error: called from line 44, file: /home/adamb/.slrnrc.sl
slrn fatal error: /home/adamb/.slrnrc: Error encountered processing line 5
interpret .slrnrc.sl

Line 44, as best I can tell, is:

   str = read_mini ("AltaVista Search", "", str);

-- 
Adam Bailey    | Chicago, Illinois
adamb@lull.org | "Logic is the art of going wrong with
adamkb@aol.com |  confidence." - George Bernard Shaw
Finger for PGP | http://www.lull.org/adam/

Re: fetching expired articles with slrn
#47256
Author: Heikki Kantola
Date: Fri, 12 Mar 1999 00:00
31 lines
2681 bytes
Adam Bailey <adamb@lull.org> informed
news.software.readers with the following:
>John E. Davis <davis@space.mit.edu> wrote:
>>Here is some code that will search via altavista.  It performs a
>>similar task to what you are trying to achieve:
>
>This chokes on me. Attempting to run slrn gives me the following error:
>
>slrn 0.9.5.4 (Mar  8 1999 14:44:26)
>
>Reading startup file /home/adamb/.slrnrc.
>loading /home/adamb/.slrnrc.sl
>S-Lang Error: Syntax Error: Expecting ;: found 'str', line 44, file: /home/adamb/.slrnrc.sl
>S-Lang Error: Syntax Error: called from line 44, file: /home/adamb/.slrnrc.sl
>slrn fatal error: /home/adamb/.slrnrc: Error encountered processing line 5
>interpret .slrnrc.sl
>
>Line 44, as best I can tell, is:
>
>   str = read_mini ("AltaVista Search", "", str);

That line is fine, but as the error message says there's a ';' missing
_on the previous line_.
 
-- 
Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI>
L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan
osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta
tunnilta.

Re: I don't want anyone to see my post (was Re: pine vs. slrn - Gnus wins (was: attrib rant -> slrn attribution and commands))
#47293
Author: Steve Lamb
Date: Sun, 14 Mar 1999 00:00
22 lines
1962 bytes
On Sun, 14 Mar 1999 22:25:51 -0500, Russell Schulz
<Russell_Schulz@locutus.ofB.ORG> wrote:
>if you don't want to be part of Usenet, don't post.

    Whenever did I say that?
		
>part of Usenet is taking things OFF Usenet when applicable; the place
>to take these things is email.

    Part of usenet is respecting other's wishes.  If people feel compelled
to sent me email, so be it.  But they aren't forced to reply publicly *OR*
privately.  If what they want to say isn't fit for a public venue and I
don't want things private, it ends, no big deal.  Gee, that was a hard
concept to grasp, wasn't it?

-- 
             Steve C. Lamb             | Opinions expressed by me are not my
    http://www.calweb.com/~morpheus    | employer's.  They hired me for my
             ICQ: 5107343              | skills and labor, not my opinions!
---------------------------------------+-------------------------------------

I don't want anyone to see my post (was Re: pine vs. slrn - Gnus wins (was: attrib rant -> slrn attribution and commands))
#47316
Author: Russell Schulz
Date: Sun, 14 Mar 1999 00:00
15 lines
1594 bytes
morpheus@no-spam.calweb.com (Steve Lamb) writes:

> No.  I didn't say I didn't want CCs, I said I don't want *any* email
> from news.  My feed is good enough and my scoring good enough that
> I'll catch 99% of the replies.  What you pointed out discourages CCs,
> not email replies overall.

if you don't want to be part of Usenet, don't post.

part of Usenet is taking things OFF Usenet when applicable; the place
to take these things is email.
-- 
Russell_Schulz@locutus.ofB.ORG  Shad 86c

Re: I don't want anyone to see my post (was Re: pine vs. slrn - Gnus wins (was: attrib rant -> slrn attribution and commands))
#47842
Author: Russell Schulz
Date: Thu, 08 Apr 1999 00:00
18 lines
1646 bytes
morpheus@no-spam.calweb.com (Steve Lamb) writes:

>> if you don't want to be part of Usenet, don't post.
>
>     Whenever did I say that?

Where you said you didn't want people to respond to your posts.

> If people feel compelled to sent me email, so be it.  [...] If what
> they want to say isn't fit for a public venue and I don't want things
> private, it ends

Those seem contradictory to me; you say people may mail you, but you
still complain that they shouldn't be able to.
-- 
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