🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
9 messages
9 total messages Started by Sven Guckes Mon, 21 Jul 1997 00:00
SLRN Wishlist [970722]
#35392
Author: Sven Guckes
Date: Mon, 21 Jul 1997 00:00
492 lines
21599 bytes
Hello, fellow user of SLRN!

Well, after some feedback the SLRN Wishlist looks a lot better.  Thanks!
Here is the latest version - please take a look at it.
If you should follow up on this post - please send a Cc to me, too.
I also appreciate further text on features which explain their usefulness etc.

Enjoy SLRN!  :-)

Sven

-- 
Sven Guckes guckes@math.fu-berlin.de                using SLRN 0.9.4.3 [970714]
SLRN Pages:     http://www.math.fu-berlin.de/~guckes/slrn/     0.9.4.3 [970714]
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


===

   Created:     Wed Jul 16 16:16:16 CEST 1997
   Last update: Tue Jul 22 00:00:00 CEST 1997
   
                                SLRN - Wishlist
                                       
   A list of features for the newsreader [1]slrn wished by the users.
     _________________________________________________________________
   
                           SLRN - Wishlists Overview
                                       
   [2]miscellaneous | [3]documentation | [4]tagging | [5]sorting |
   [6]scoring | [7]display | [8]email | [9]slang hooks | [10]slrnpull
     _________________________________________________________________
   
  SLRN - Wishlist for Miscellaneous & NEW stuff
  
   vi style command line
          This might also allow to display the value of internal
          variables, eg ":set read_active?" will display the vakue of
          "read_active".
          JED: "Future."
          Status: "todo"
          [970722]
          
   configurable command line commands
          Allow definition of keys to map to commands, such "^u" to
          delete the input line. (So far you have to use ^a^k for this.)
          Status: "todo"
          [970722]
          
   Filename expansion
          Expand filenames onto input line for files.
          Status: "todo"
          [970722]
          
   Default Save File for Newsgroups
          When saving an article to a file then the filename you are
          presented with is "~/News/Newsgroup.name". JED: "Later you will
          be able to define what file to use for a given newsgroup."
          [960506]
          Status: "todo"
          
   [DONE] description file - maintaing global file
          With slrn you can keep a "description file" in your home dir
          (~/.jnewrc.dsc) from which slrn will take the "description
          string" and display it on screen. It seems this file is always
          local to each user.
          Suggestion: Allow a "global" description file for use with all
          users. the sysadmin can periodically update this file from the
          news host.
          Suggested by: Pascal A. Dupuis dupuis@lei.ucl.ac.be
          [970716]
          It seems that this is already supported. Heikki Kantola
          hkantola@cc.Helsinki.FI says [970721]:
          "Slrn looks for $(SLRN_LIB_DIR)/newsgroups.dsc for system-wide
          newsgroup listing."
          And Byrial Jensen byrial@post3.tele.dk adds:
          For details see the file doc/INSTALL in the slrn package.
          
   add abort and interrupt to all command prompts
          Some commands do not allow to abort the current prompt.
          Whatever answer you give, you will proceddt o the next prompt.
          But it should be possible to abort the command sequence at any
          prompt. I think all prompts should allow abortion with ^C at
          any prompt. The option ^G should take you back one level to the
          previous prompt.
          [970717]
          
   Post/reply composition auto-abort
          Optionally abort post/reply when the tempfile hasn't changed.
          Should prevent "empty" followups/posts/replies. Several mailers
          do this already.
          [970212]
          
   Seperate "read" and "select" mode
          Situation: With slrn the commands belong to one of three modes:
          "group" (shows list of "subscribed" and "added" groups),
          "select" (shows list of articles within a group), or "article"
          (shows an article). But you have to decide whether to map the
          commands for "select" or "article". Distinguishing between
          "read mode" and "select mode" would offer the possibility to
          map keys seperately for each mode.
          Either you "select" articles from the list of articles
          ("summary window")- or you read the articles ("article
          window"). The big plus is that you can then map all keys
          according to the mode and that you will be able to do selection
          first and then start reading of all selected articles one by
          one. :-) An option to this mode is to mark all non-selected
          articles as "read" on exit from the group. (This is inspired by
          NN.)
          [960512]
          I was told that this is possible with an sland macro, but so
          far I haven't tested it yet.
          [970717]
          
   Digests
          NN splits a "digest" into its "sub-articles" and presents them
          as newsgroup. It would be nice if SLRN could do this with a
          selection of digest or even with all digests within a
          newsgroup.
          [960512]
          Olly Betts olly@muscat.co.uk said he might do some work on
          this.
          [970718]
          
   Get newsgroup FAQ
          This command will connect to a near-by faq server and get the
          FAQ for the current (or some other) newsgroup. [I hear the
          newsreader Gnus has this.] Maybe this should be done by sending
          a request via email to a FAQ server. Sounds like it could be
          done with an slang macro. Any takers?
          [970717]
          
   Complimentary Copy at Post Menu
          Add a "mail" command to "post menu" (the one you get after exit
          from editor) that sends off a complimentary copy of the
          composed text. This allows to send the post as mail to the
          previous poster before it gets posted. This is good if you want
          to send additional info at the end that you do not want to post
          to Usenet, though. (At least that's what I had used it for. :-)
          Also add a (configurable) string to the top of the body to
          indicate this. Suggested default: "This has been composed with
          slrn and sent before it was posted to Usenet."
          [970718]
          
   Postponed posts - notification
          Add a warning at startup and/or every followup about postponed
          posts. These are recognized as files in the postpone directory.
          (So far you can just save the tempfile.)
          [970716]
          
  SLRN - Wishlist for documentation and manual
  
   Generally, the documentation is lacking a lot. Usually you get the
   hint "read the file changes.txt", but this is not for the weak of
   heart. We need documentation! Somebody please help!!
   
   Jan Hlavacek [11]lahvak@math.ohio-state.edu has started pages with
   info on variables and internal functions:
   
   [12]http://www.math.ohio-state.edu/~lahvak/software/slrn/ Hopefully
   these will be added to the distribution soon!
   
   Regular expressions
          Describe which kind of regular expressions are implemented. For
          example about "repetition ranges", eg "X{3,5}" to mean "a
          sequence of three to five 'X'".
          [960703,970717]
          
   Version number, release date; revision number
          Include the version number and release date of the latest
          release and well as a revision number of the manual itself.
          
   Function descriptions
          List all functions.
          
   Web pages
          List the URL of the slrn faq and online www manual.
          
  SLRN - Wishlist for "tagging"
  
   Tag by regexpr
          You can search for the *next* article by subject regexpr but
          you cannot tag all articles by subject. Tagging by *any* header
          line would be even better! :-)
          
  SLRN - Wishlist for "sorting"
  
   The current slrn [slrn-0943, 970716] offers twelve sorting methods:
        ._________________________________________________.
        |                 Sorting Method                  |
        |                                                 |
        | 0 No sorting                                    |
        | 1 Thread Headers                                |
        | 2 Sort by subject                               |
        | 3 Thread, then sort by subject.                 |
        | 4 Sort by scores.                               |
        | 5 Thread, then sort by scores.                  |
        | 6 Sort by score and subject                     |
        | 7 Thread, then sort by score and subject        |
        | 8 Sort by date (most recent first)              |
        | 9 Thread, then sort by date (most recent first) |
        | A Sort by date (most recent last)               |
        | B Thread, then Sort by date (most recent last)  |
        ._________________________________________________.

   Frequently wished sort methods:
   
   Sort by sender (From:)
          Some people post quality stuff. We need to read their posts in
          a row. Like the posts from JED. :-)
          
   Sort by lines
          Same here : Getting rid of big articles.
          
  SLRN - Wishlist for "scoring"
  
   Scoring so far works by preset rules within the scoring file.
   Temporary scoring and content scoring is not possible yet. Content
   scoring requires SLRN to get the article before applying a score, of
   course.
   
   "Basic" Scoring a la (s)trn:
   Basic scoring does scoring by keywords on the whole article, ie
   including the header and the body.
   The newsreaders trn and strn allows this.
   J.H.M.Dassen (jdassen@wi.leidenuniv.nl)
   [970409]
   
   Change to Kill Menu:
   Add "return" as the command to kill the current article for 30 Days
   (as with NN).
   [960730]
   
   "Automatic removal of expired score entries":
   As soon as a scoring does not apply any more it should be commented
   out or even be removed from the score file - optionally to another
   file.
   [960616]
   
   "Temporary scoring":
   This allows to define a score on articles in the current newsgroup -
   but *without* requiring to edit the scorefile, exit and reenter the
   newsgroup. This is useful if you want to test a scoring rule or simply
   if you just don't want to edit the scorefile. It also should be a lot
   faster than applying all rules on all articles again.
   
   "Content scoring":
   This takes a look at the contents ("body") of the articles and assigns
   further scores based on the info. This needs not be invoked on all
   articles and only when requested. With long articles you usually want
   to know a few things about - and fast. It would be nice if SLRN told
   you that the article contains URLs, a lot of quoted text, a big sig,
   or overly long lines. Maybe this could be realized with a script that
   gets called on request.
   
   "Relative expiry time":
   Allow entries releative to current time, eg "N days/weeks/moths from
   today".
   [960604]
   
   "Adaptive Scoring":
   Every message you read adds a small positive for that author and
   subject; every message you mark as read adds a small negative score
   for that author and subject.
   
  SRLN - Wishlist for "content scoring"
  
   URLs
          Show URLs in special colour.
          [960531]
          A patch for this exists already:
          URL: [13]http://www.muscat.co.uk/~olly/
          [970717]
          
   Signatures
          

Content-Score: -9999
        Signature-Length: 5

Content-Score: -9999
        Signature-Characters: [\t]

   [960510]
          
   Quotes
          80% quoted material makes a post hard to read. Therefore:
          
   Content-Score: -1000 Quote-Percentage: 50
   
   Width
   Some people may have screens which allow to show 250 characters per
   line. But most people still use computers with only 80 characters per
   line. Thus a check for line length should be possible, too.

Content-Score: -1000
        Width: 81

                          SLRN - Wishlist for Display
                                       
   article header list layout
          Gottfried Schwieters [14]Gottfried.Schwieters@quantum.de
          "Add the date (and time) in the 'article header list'. The
          'article number' and 'number of lines' should go away to have
          enough room for this."
          [970721]
          
   collapsing whitespace
          Some people use too many spaces in posts - therefore the
          following commands are desired: Collapse whitespace runs to a
          single space and blocks of empty lines as a single empty line
          (like the pager "less" does).
          
   showing whitespace
          A command to toggle all or just trailing whitespace.
          
  SLRN - Wishlist for display of pager
  
        Alternate sigdashes
                Some people just don't get that the sigdashes have a
                trailing space. So what you need for these people is an
                alternate sigdashes *without* the space "\n--\n".
                [960509]
                
        scroll_past_end_of_article
                Add option "scroll_past_end_of_article": Allow scrolling
                past end of article. (I'd chose to diallow it. :-)
                [960528]
                
  SLRN - Wishlist for Display of Articles
  
        Display last article
                Show indicator for last article in thread. Show numer of
                articles in current thread as "[TT/RR/NN]" where TT is
                the number of total articles in the thread, RR is the
                number of "read" articles, and NN is the number of "new"
                articles, ie those which are still to-be-read. The
                current article does not count, so TT=RR+NN+1.
                Inspired by a post by Craig Werner
                (werner@world.std.com).
                [961201]
                
        Display subscribe status
                Show subscription info when both subscribed and
                unsubscribed groups are shown.
                [960512]
                
        Display of settings
                

wrap (on/off)
terse (on/off)
sort (none(art-id),subject,date,from,lines;threads)
quote (all,collapsed)

        Recall used newsgroups
                Show the name of the newsgroup that you last posted to.
                Would be nice to keep a history list across starts, too.
                Very useful for the next post.
                
        ESC mode
                Give info on ESC commands by showing a mode warning, eg
                "ESC mode:" with possible completions.
                
        use HTML code tag
                Show text within the tag text in a different colour.
                
        Header colour customization
                Display header lines in special colour if eg the article
                is from a cool person or a special address:
                

colour header.from: "John Davis " red

        Also allow extra header lines to be shown, such as "Keywords" and
                "Summary", or "X-Newsreader".
                
        pgp signatures
                Allow to give a seperate color to pgp signatures. Giving
                it the same color as the background thus allows to hide
                it. ;-) Drawback: A "hidden" signature would still take
                up space.
                Allow to hide pgp signatures completely. These sure take
                up space on the screen. :-(
                Olly Betts olly@muscat.co.uk has started work on this,
                but hasn't finished it yet. Please bug him so he might do
                it! :-)
                [970718]
                
        OS/2 wishlist
                
        Suspend
                From: davidn@csource.blaze.net.au (David Nugent) Subject:
                Re: ANNOUNCE: slrn0.8.8.1 released Date: Thu, 9 May 1996
                19:05:22 GMT I realise that this does a bg (suspend)
                under UNIX, but under OS/2 the usual thing is to
                substitute a shell.
                
  SLRN - Wishlist for email features
  
          Olly Betts olly@muscat.co.uk has compiled a list of desired
          features:
          
          URL: [15]http://www.muscat.co.uk/~olly/slrnmail.html
          [970212] Olly has already written some code for this.
            __________________________________________________________
          
  SLRN - Wishlist for "slang hooks"
  
        post-filter-body hook - pipe through filter
                A post-filter-body hook to run the body of the message
                through the filter.
                Purpose: You can put together a script to edit and re-add
                the headers and .sig, but it's a PITA. [huh?] This also
                allows to spell check the body text without the header
                and sig getting in the way with the spell checker.
                Suggested by: Pardoz pardoz@io.com [970716]
                
        automatic post_filter_hook invocation
                The default behavior should be the same as it is today,
                but if an optional .slrnrc variable is set to 'yes', then
                all posts would go through this hook. We can get this
                behavior by using 'set_input_chars' within 'post_filter'
                and 'forward_filter', but in the case of forwarding, we
                have to duplicate a lot of logic that currently resides
                in art.c in order to accomodate the one or maybe two
                other prompts that are given to us before the prompt for
                feeding the article through the 'post_filter_hook'. The
                setting of this optional variable would allow me to get
                rid of a lot of this redundant code in my macros.
                Suggested by: Lloyd Zusman ljz@asfast.com [970716]
            __________________________________________________________
          
  SLRN - Wishlist for "slrnpull"
  
        option "--headers"
                Just grab new headers from the server, download the
                selected bodies at next connect.
                Suggested by: Pardoz pardoz@io.com
                [970716]
                
        kill log
                A kill log for slrnpull so you could monitor whether your
                score file is killing articles you might be interested in.
                Suggested by: Pardoz pardoz@io.com
                [970716]
                
        kill threshold
                A user-selectable kill threshold for slrnpull instead of
                the default -1.
                Suggested by: Pardoz pardoz@io.com
                [970716]
            __________________________________________________________
          
                                    Credits
                                       
          Since I had posted this list on news.software.readers I have
          received good feedback from slrn users. Thanks to all of them!
          :-)
          
	Pardoz      pardoz@io.com
	Olly Betts  olly@muscat.co.uk
         __________________________________________________________
          
          Send feedback on this page to
          
          
    Sven Guckes [16]guckes@math.fu-berlin.de

References

   1. http://www.math.fu-berlin.de/~guckes/slrn/
   2. http://www.math.fu-berlin.de/~guckes/slrn/wish.html#misc
   3. http://www.math.fu-berlin.de/~guckes/slrn/wish.html#doc
   4. http://www.math.fu-berlin.de/~guckes/slrn/wish.html#tagging
   5. http://www.math.fu-berlin.de/~guckes/slrn/wish.html#sorting
   6. http://www.math.fu-berlin.de/~guckes/slrn/wish.html#scoring
   7. http://www.math.fu-berlin.de/~guckes/slrn/wish.html#display
   8. http://www.math.fu-berlin.de/~guckes/slrn/wish.html#mailer
   9. http://www.math.fu-berlin.de/~guckes/slrn/wish.html#hooks
  10. http://www.math.fu-berlin.de/~guckes/slrn/wish.html#slrnpull
  11. mailto:lahvak@math.ohio-state.edu
  12. http://www.math.ohio-state.edu/~lahvak/software/slrn/
  13. http://www.muscat.co.uk/~olly/
  14. mailto:Gottfried.Schwieters@quantum.de
  15. http://www.muscat.co.uk/~olly/slrnmail.html
  16. mailto:guckes@math.fu-berlin.de
===

Save file names (Was: Re: SLRN Wishlist [970722])
#35408
Author: Jan Hlavacek
Date: Tue, 22 Jul 1997 00:00
91 lines
3682 bytes
On 21 Jul 1997 22:27:44 GMT, Sven Guckes <guckes@math.fu-berlin.de> wrote:

>   Default Save File for Newsgroups
>          When saving an article to a file then the filename you are
>          presented with is "~/News/Newsgroup.name". JED: "Later you will
>          be able to define what file to use for a given newsgroup."
>          [960506]
>          Status: "todo"

This is what I use (edit the get_file_for_group function)


% this is based on the following macro posted by J.B. Nicholson-Owens
% (<jbn@pop-a-wheelie.midwest.net>)

define append_article_save (file)
{
   % Saves the current article to the named file, appending if the file
   % exists.

   if (is_group_mode) return ();        % this only works in article mode

   set_input_string (file);             % put filename in the response stack
   call ("save");                       % save article (into file)
}

define complete_filename (file)
{
   % Append the name of the file to ${HOME}/News/
   % unless it starts with ~ or /
   
   if ((file[0] == '~') or (file[0] == '/')) return (file);
   
   Sprintf ("%s/%s/%s", getenv("HOME"),
	    get_variable_value("save_directory"),
	    file, 3);
}

define get_file_for_group (group)
{
   % Assign a name of an output folder based on the group name.
   % I don't like to have all those really long file names.
   % If the group isn't on the list,  leave it the way it is.
   
   switch (group)
     {case "soc.culture.czecho-slovak"           : "sccs"}
     {case "news.software.readers"               : "newsreaders"}
     {case "comp.editors"                        : "editors"}
     {case "comp.infosystems.www.authoring.html" : "ciwah"}
     {case "comp.text.sgml"                      : "sgml"}
     {pop (); group}
   return ();
}

define my_save ()
{
   % Saves article into a folder based on some criteria.
   % Offers the folder name to edit.
   
   if (is_group_mode) return ();
   
   variable group = current_newsgroup;
   variable subject = strlow(extract_article_header ("Subject"));
   
   % First,  pick a folder name based on group.
   variable file = get_file_for_group (group);
   
   % Then treat some special subjects separately.
   if (is_substr (subject,  "vim")) file = "vim";
   if (is_substr (subject,  "slang")) file = "slang";
   if (is_substr (subject,  "jed")) file = "jed";
   if (is_substr (subject,  "slrn")) file = "slrn";
   
   % Not very likely that I'll edit the name,  
   % if I don't like it,  I'll just type in a new one.
   file = read_mini ("Append to folder", file, "");
   
   append_article_save (complete_filename (file));
}


definekey ("my_save", "o", "article");

-- 
Jan Hlav\'{a}\v{c}ek <lahvak+n@math.ohio-state.edu>  (BCC's will bounce)
home page: http://www.math.ohio-state.edu/~lahvak/
slrn page: http://www.math.ohio-state.edu/~lahvak/software/slrn.html
slrn documentation: http://www.math.ohio-state.edu/~lahvak/software/slrn/

Re: SLRN Wishlist [970722]
#35635
Author: Gabriel Zachmann
Date: Mon, 04 Aug 1997 00:00
52 lines
2592 bytes

On 21 Jul 1997 22:27:44 GMT, Sven Guckes <guckes@math.fu-berlin.de> wrote:
" Hello, fellow user of SLRN!
" 
" Well, after some feedback the SLRN Wishlist looks a lot better.  Thanks!
" Here is the latest version - please take a look at it.
" If you should follow up on this post - please send a Cc to me, too.

i have a few more wishes which don't seem to be on the
current wishlist
[ i hope i haven't overlooked them should they already be implemented]:

1)
It would be nice if there were a
menu of nntp servers derived from all "server" commands in .slrnrc;
also, the -h option could accept server nicknames
which could be derived from filenames ".jnews-<nickname>".

2)
If a server doesn't let me post, then slrn shouldn't let me
write a posting, only to tell me *afterwards* that i can't post.

3)
It would be nice if the pipe command "|" would remember 
the command i typed in last time, and give me that as a
default which i could then edit.

4)
What is the numbering of the artiles good for,
since the first one being displayed always has the number "1"?


What do you think? Do they make sense?

Gabriel Zachmann

/------------------------------------------------------------------\
| !!  NEW ADRESS: Rundeturmstr.6, 64283 Darmstadt   !!             |
| !!  NEW PHONE : 06151/155-279                     !!             |
/------------------------------------------------------------------\
| I dwell in Possibility --                                        |
| A fairer House than Prose --                                     |
| More numerous of Windows --                                      |
| Superior -- for Doors -- [..]          (Emily Dickinson)         |
|                            __@/                                  |
| mailto:zach@igd.fhg.de            http://www.igd.fhg.de/~zach    |
\------------------------------------------------------------------/



Re: SLRN Wishlist [970722]
#35662
Author: Hubert Canon
Date: Tue, 05 Aug 1997 00:00
17 lines
1205 bytes
Gabriel Zachmann ecrivait :
> 1)
> It would be nice if there were a
> menu of nntp servers derived from all "server" commands in .slrnrc;
> also, the -h option could accept server nicknames
> which could be derived from filenames ".jnews-<nickname>".

1bis) it would be nice if I could have a global .slrnrc and another
for every news-server. For example, I want to have many directories
for slrnpull (one for each server), but in .slrnrc there only one
spool_root.

-- 
Hubert Canon

Re: SLRN Wishlist [970722]
#35699
Author: Hubert Canon
Date: Thu, 07 Aug 1997 00:00
16 lines
1237 bytes
Heikki Kantola ecrivait :
> Hmm, I think you could implement such behaviour by using the "include"-
> command that was added in version 0.9.4.0 alongside with the prepro-
> sessing commands, of which JED has written following quite some time
> ago:


Yes, it's exactly what I want. But where is this feature documented ?
I have seen nothing like that in slrn/doc/* nor in slrn/changes.txt
nor in the man page.

-- 
Hubert Canon

Re: SLRN Wishlist [970722]
#35701
Author: Heikki Kantola
Date: Thu, 07 Aug 1997 00:00
127 lines
4647 bytes
Hubert Canon <Hubert.Canon@irisa.fr> informed
news.software.readers with the following:
>Gabriel Zachmann ecrivait :
>> 1)
>> It would be nice if there were a
>> menu of nntp servers derived from all "server" commands in .slrnrc;
>> also, the -h option could accept server nicknames
>> which could be derived from filenames ".jnews-<nickname>".
>
>1bis) it would be nice if I could have a global .slrnrc and another
>for every news-server. For example, I want to have many directories
>for slrnpull (one for each server), but in .slrnrc there only one
>spool_root.

Hmm, I think you could implement such behaviour by using the "include"-
command that was added in version 0.9.4.0 alongside with the prepro-
sessing commands, of which JED has written following quite some time
ago:

From davis@space.mit.edu Thu Jan 18 00:25:40 1996
Path: news.helsinki.fi!news.csc.fi!news.eunet.fi!EU.net!
 newsfeed.internetmci.com!gatech!bloom-beacon.mit.edu!
 senator-bedfellow.mit.edu!davis
From: davis@space.mit.edu (John E. Davis)
Newsgroups: news.software.readers,alt.lang.s-lang
Subject: slrn: customization hints
Date: 16 Jan 1996 16:04:20 GMT
Organization: Center for Space Research
Lines: 88
Message-ID: <slrn4fnj44.bkb.davis@wiwaxia.mit.edu>
Reply-To: davis@space.mit.edu
NNTP-Posting-Host: wiwaxia.mit.edu
X-Newsreader: slrn (0.8.4.1)
Xref: news.helsinki.fi news.software.readers:26572 alt.lang.s-lang:352

Hi,

   I have had several slrn users request additional customization on a
server by server basis.  The purpose of this note is to point out that this
is already possible if your server is selected via an environment variable.

   The trick is to use preprocessing lines in your .slrnrc file.  slrn
supports the following constructs:

#ifdef a b ... c
#ifndef a b ... c
#if$ENV a b ... c
#ifn$ENV a b ... c
#iftrue
#iffalse
#ifntrue
#ifnfalse

along with:
#else
#elif...
#endif

For the purposes of this article, the most useful one is #if$ENV.  Here ENV
represents an environment variable.  For example, for the NNTPSERVER
environment variable #if$NNTPSERVER may be used.

Since I suspect that most users only have access to one server, I will
concentrate on the case of multiple terminals.  Here the relevant
environment variable is TERM.  Let's suppose that you use 3 terminals: a
color xterm, a color vt102, and a vt320.  Suppose that the xterm is used at
your work where others share your office and that you only use the others at
home.  At work, you may wish to turn off beeps but allow them at home.  In
this case, the following lines in your .slrnrc file will suffice:

#if$TERM vt102 vt320
 set beep 1
#endif
#if$TERM xterm
 set beep 0
#endif

In fact, any of the follow will also work:

#ifn$TERM xterm
 set beep 1
#else
 set beep 0
#endif

#if$TERM vt102 vt320
 set beep 1
#elif$TERM xterm
 set beep 0
#else
 set beep 1
#endif

Finally note that slrn may be specified with the -D command line option.
This allows one to define additional preprocessing tokens and then use these
in conjunction with #ifdef preprcessing.  For example, consider the
following .slrnrc file:

#ifdef NERD
 server "my.news.server" ".newsrc-nerd"
 organization "Nerds Only"
 signature ".nerd-signature"
#else
 server "my.news.server" ".newsrc"
 organization "State College"
 signature ".signature"
#endif


If slrn is started as: 

    slrn -DNERD
    
the first set of setting will be used.  If started without the -DNERD
command line parameter, the second set will be used.

Enjoy.
--John

-- 
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: SLRN Wishlist [970722]
#35705
Author: Heikki Kantola
Date: Fri, 08 Aug 1997 00:00
24 lines
1828 bytes
Hubert Canon <Hubert.Canon@irisa.fr> informed
news.software.readers with the following:
>Heikki Kantola ecrivait :
>> Hmm, I think you could implement such behaviour by using the "include"-
>> command that was added in version 0.9.4.0 alongside with the prepro-
>> sessing commands, of which JED has written following quite some time
>> ago:
>
>Yes, it's exactly what I want. But where is this feature documented ?
>I have seen nothing like that in slrn/doc/* nor in slrn/changes.txt
>nor in the man page.

The include-command was mentioned in changes.txt, but for some odd
reason indeed the preprosessing stuff isn't mentioned anywhere (apart
from that ancient news article).

-- 
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: SLRN Wishlist [970722]
#35721
Author: Sven Guckes
Date: Fri, 08 Aug 1997 00:00
23 lines
1587 bytes
zach@igd.fhg.de (Gabriel Zachmann):
> 1) It would be nice if there were a menu of nntp servers derived from all
> "server" commands in .slrnrc; also, the -h option could accept server
> nicknames which could be derived from filenames ".jnews-<nickname>".
> 
> 2) If a server doesn't let me post, then slrn shouldn't let me write a
> posting, only to tell me *afterwards* that i can't post.
> 
> 3) It would be nice if the pipe command "|" would remember the command i
> typed in last time, and give me that as a default which i could then edit.

All added to the wishlist.

> What is the numbering of the artiles good for, since
> the first one being displayed always has the number "1"?

Faster access.  Or would you rather type in the
full article number as used in the database? ;-)

Sven  [time again to repost the wishlist?]

Re: SLRN Wishlist [970722]
#35731
Author: John E. Davis
Date: Sat, 09 Aug 1997 00:00
23 lines
1738 bytes
On 8 Aug 1997 08:57:42 GMT, Heikki Kantola <hezu@iki.fi>
wrote:
>The include-command was mentioned in changes.txt, but for some odd
>reason indeed the preprosessing stuff isn't mentioned anywhere (apart
>from that ancient news article).

The preprocessing code is a feature of the slang library.  I have not
had the opportunity to formally document it yet.  I guess that I have
put more effort into writing demo applications (e.g., slrn) that
illustrate the features of the library rather than documenting it.
However, that will change because I do not intend to release 1.0 until
everything is documented.

If you or any one else wants to help write documentation, please feel
free to do so.  My only request is that the documentation be in a
straight text format.  In the future, I intend to put all the
documentation in SGML format.  Actually, I intend to use what I call
``text-macro'' format and then convert that to SGML.

--John

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