🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
6 messages
6 total messages Started by David Cooke Tue, 31 Aug 1999 00:00
slrn question
#51342
Author: David Cooke
Date: Tue, 31 Aug 1999 00:00
15 lines
1179 bytes
Hi,

I've just started using slrn with linux and have noticed that some messages
have some "^M" characters in them which I presume means <ctrl>-M, where there
should be spaces.  This only happens in a few messages (not the ones I post),
but makes reading very frustrating.  Is there a way to make slrn deal with
these characters and display them (correctly???) as spaces?

Thanks in advance.

-- 
David Cooke
d.cooke@virgin.net

Re: slrn - to show CTRL-M or not
#51275
Author: Curt Welch
Date: Tue, 31 Aug 1999 00:00
51 lines
3091 bytes
guckes@math.fu-berlin.de (Sven Guckes) wrote:
> * David Cooke <d.cooke@twodoves.net>:
> > I've just started using slrn with linux and have noticed that some
> > messages have some "^M" characters in them which I presume means
> > <ctrl>-M, where there should be spaces.  This only happens in a few
> > messages (not the ones I post), but makes reading very frustrating.
> > Is there a way to make slrn deal with these characters and display
> > them (correctly???) as spaces?
>
> Well, what if the article/post *does* contain a literal CTRL-M?
> Anyway - can you name an example?  (post the message-id)

I can.

<01Yy3AwZqkuZ092yn@io.com> - a CR in the sig

<7qevht$nn2$222@news.worldonline.nl> - spam with extra CRs on most lines
                                       (most articles with ^M are spam)

<0EEy3.6730$C%.4534628@WReNphoon3> - the same article posted 3 times by the
<KBEy3.55$Zd.53950@WReNphoon3>       RemarQ web interface.  Has ^M at the
<PBEy3.56$Zd.52422@WReNphoon3>       end of two lines.

<MrDy3.43$Zd.46369@WReNphoon3>     - more crap from RemarQ with extra ^M

<65425m$awB$7@bbs.openfind.com.tw> - crap from http://bbs.openfind.com.tw
                                     looks like they bought the remarq
                                     code.

<ykBy3.3894$ub2.1385@client>       - automated job postings with extra ^M

<7qf8nu$s2i@newsops.execpc.com>    - extra ^M in quoted text header

<rsmc2nkkj7182@news.supernews.com> - Posted via CNET Linux Help (more bogus
                                     RemarQ web code?)

In all the message I looked though (and my server lists over 250000 of
them), I didn't see a single one which had a valid ^M.  They were all
extra ^M which got into the article by mistake (many times by automated
posting sytems like spam posting programs etc.)

The reason all these bogus postings continue to exist is becasue most
newsreaders don't show the extra CR.  I think newsreaders should show
them - that will encourage people to fix these problems.  NewsReader.Com
shows them now as ^M so I can see these problems when I read the article.

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

Re: slrn - to show CTRL-M or not
#51341
Author: Sven Guckes
Date: Tue, 31 Aug 1999 00:00
14 lines
1363 bytes
* David Cooke <d.cooke@twodoves.net>:
> I've just started using slrn with linux and have noticed that some
> messages have some "^M" characters in them which I presume means
> <ctrl>-M, where there should be spaces.  This only happens in a few
> messages (not the ones I post), but makes reading very frustrating.
> Is there a way to make slrn deal with these characters and display
> them (correctly???) as spaces?

Well, what if the article/post *does* contain a literal CTRL-M?
Anyway - can you name an example?  (post the message-id)

Sven

Re: slrn question
#51379
Author: David Efflandt
Date: Wed, 01 Sep 1999 00:00
27 lines
1820 bytes
On Tue, 31 Aug 1999 02:28:15 +0100, David Cooke <d.cooke@twodoves.net> wrote:
>Hi,
>
>I've just started using slrn with linux and have noticed that some messages
>have some "^M" characters in them which I presume means <ctrl>-M, where there
>should be spaces.  This only happens in a few messages (not the ones I post),
>but makes reading very frustrating.  Is there a way to make slrn deal with
>these characters and display them (correctly???) as spaces?
>
>Thanks in advance.

^M is carriage return.  Fallout from DOS/Win users.  At least it is better
than straight html or base64 encoding spit out by Outlook users.  Note
that you will also sometime see =20's all over the place if some server
along the way does not properly handle quoted-printable.  Some people had
that problem when I was using StarOffice to post news (since it did not
have any straight ASCII mode).

>-- 
>David Cooke
>d.cooke@virgin.net

-- 
David Efflandt   efflandt@xnet.com   http://www.xnet.com/~efflandt/
http://www.de-srv.com/   http://cgi-help.virtualave.net/

Re: slrn question
#51382
Author: Dawn Owens-Nicholson
Date: Wed, 01 Sep 1999 00:00
33 lines
1694 bytes
David Cooke wrote:
> Is there a way to make slrn deal with these characters and display them
> (correctly???) as spaces?

With replace_article() you can make slrn display any string you want in the
article area.  So something like this could be done:

  variable article = article_as_string ();
  while (str_replace (article, char (0x0D), " ")) article = ();
  replace_article (article);

and bound to a key to make the article go through this processing.  You
could use this function:

  implements "my";
  static define remove_ctrl_m ()
  {
     variable article = article_as_string ();
     while (str_replace (article, char (0x0D), " ")) article = ();
     replace_article (article);
  }

Save the above function definition (into my_macros.sl in your homedir, for
example) and bind it to a key then load it into slrn with this in your
slrn.rc:

  interpret "my_macros.sl"
  setkey article my->remove_ctrl_m "M"

Of course, don't use this on an article where you really want to see ^M.
Running this on articles that don't have ^Ms is okay.

Re: slrn question
#51483
Author: Dawn Owens-Nicholson
Date: Fri, 03 Sep 1999 00:00
27 lines
1679 bytes
Sven Gottwald wrote:
> My slrn is compiled with 'S-Lang Macros' support and I'm using S-Lang
> version 1.2.2. What is the problem?

Namespaces were implemented in a version after 1.2.2.  I usually suggest
using the "my" namespace because it's good to keep one's personal changes
separate from the rest of the system.  In the long run, it would probably be
easier for you to upgrade by recompiling slrn with the latest S-Lang
(1.3.7).  If you don't want to do that you could make the following changes:

 * In my_macros.sl, comment out the implements line by prepending a "%":
      %implements "my";

 * Change the define line:
      static define remove_ctrl_m ()
   to
      define remove_ctrl_m ()

 * In your slrn.rc, change
      setkey article my->remove_ctrl_m "M"
   to
      setkey article remove_ctrl_m "M"

Then quit and restart slrn to see what errors you get (I'm not sure if the
syntax of any of the functions used changed since 1.2.2).

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