🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
7 messages
7 total messages Started by Brian Masinick Thu, 04 Mar 1999 00:00
Setting up editor for slrn
#47088
Author: Brian Masinick
Date: Thu, 04 Mar 1999 00:00
44 lines
2295 bytes
I've used slrn in the past on a PC, as well as on UNIX, and it works
great
for me.  The last time I had it set up, I used either jed or WJED (aka
gw32jed.exe)
as my text editor for posting, replying, etc.

Recently I rebuilt my system, and after I did so, I reinstalled slrn.
Unfortunately,
I misplaced my slrn.rc file, not to mention many other configuration
files.  I just
got it back on the air last night.  Now I can READ news with slrn.  But
I tried
to set up WJED as my editor, and it seems to not be finding it.  What I
did
was modify the slrn.rc file in the example doc directory, moving it
to the same place from which I run slrn.  Most everything
else I played with seemed to work OK.  But for some reason, posts and
replies ACT like they're going to go out to the editor, but they just
come back
to the prompt, and ask me if I want to send, when I haven't edited a
thing.
That tells me that my configuration line for the editor is wrong.

What I did was take the example, uncomment it, and change jed to
gw32jed.exe.
I made a couple of tries, and also TRIED to put in the full path... I
might have
messed up.  But am I doing the right thing?

I'll follow up and try a few things, but if someone can suggest the
CORRECT
syntax right off the bat, it'd sure help me out, as I have LOTS of
software
to reconfigure, and not a lot of spare time.  If I happen to stumble on
the
right syntax, I'll be a sport and mention it so that people new to slrn
can also
benefit...

Thanks!
Brian


Re: Setting up editor for slrn
#47060
Author: John Moreno
Date: Thu, 04 Mar 1999 00:00
46 lines
2859 bytes
Brian Masinick <masinick@yahoo.com> wrote:

> Yuck!  What a mess... no thanks to Netscape... this is one of the BIG
> reasons I want to use slrn with a good text editor!!! :-(

And this is one of the big reasons for using a good text editor...
 
> Brian Masinick wrote:
> 
> > I've used slrn in the past on a PC, as well as on UNIX, and it works
> > great for me.  The last time I had it set up, I used either jed or WJED
> > (aka gw32jed.exe) as my text editor for posting, replying, etc.
> >
> > Recently I rebuilt my system, and after I did so, I reinstalled slrn.
> > Unfortunately, I misplaced my slrn.rc file, not to mention many other
> > configuration files.  I just got it back on the air last night.  Now I can
> > READ news with slrn.  But I tried to set up WJED as my editor, and it
> > seems to not be finding it.  What I did was modify the slrn.rc file in the
> > example doc directory, moving it to the same place from which I run slrn.
> > Most everything else I played with seemed to work OK.  But for some
> > reason, posts and replies ACT like they're going to go out to the editor,
> > but they just come back to the prompt, and ask me if I want to send, when
> > I haven't edited a thing. That tells me that my configuration line for the
> > editor is wrong.
> >
> > What I did was take the example, uncomment it, and change jed to
> > gw32jed.exe. I made a couple of tries, and also TRIED to put in the full
> > path... I might have messed up.  But am I doing the right thing?
> >
> > I'll follow up and try a few things, but if someone can suggest the
> > CORRECT syntax right off the bat, it'd sure help me out, as I have LOTS of
> > software to reconfigure, and not a lot of spare time.  If I happen to
> > stumble on the right syntax, I'll be a sport and mention it so that people
> > new to slrn can also benefit...
> >
> > Thanks! Brian


(please forgive my posting a whole message just to make a one line
comment, but I think my point is more effectively made if the whole
article is present).

-- 
John Moreno

Re: Setting up editor for slrn
#47084
Author: Brian Masinick
Date: Thu, 04 Mar 1999 00:00
49 lines
2577 bytes
Yuck!  What a mess... no thanks to Netscape... this is one of
the BIG reasons I want to use slrn with a good text editor!!! :-(

Brian Masinick wrote:

> I've used slrn in the past on a PC, as well as on UNIX, and it works
> great
> for me.  The last time I had it set up, I used either jed or WJED (aka
> gw32jed.exe)
> as my text editor for posting, replying, etc.
>
> Recently I rebuilt my system, and after I did so, I reinstalled slrn.
> Unfortunately,
> I misplaced my slrn.rc file, not to mention many other configuration
> files.  I just
> got it back on the air last night.  Now I can READ news with slrn.  But
> I tried
> to set up WJED as my editor, and it seems to not be finding it.  What I
> did
> was modify the slrn.rc file in the example doc directory, moving it
> to the same place from which I run slrn.  Most everything
> else I played with seemed to work OK.  But for some reason, posts and
> replies ACT like they're going to go out to the editor, but they just
> come back
> to the prompt, and ask me if I want to send, when I haven't edited a
> thing.
> That tells me that my configuration line for the editor is wrong.
>
> What I did was take the example, uncomment it, and change jed to
> gw32jed.exe.
> I made a couple of tries, and also TRIED to put in the full path... I
> might have
> messed up.  But am I doing the right thing?
>
> I'll follow up and try a few things, but if someone can suggest the
> CORRECT
> syntax right off the bat, it'd sure help me out, as I have LOTS of
> software
> to reconfigure, and not a lot of spare time.  If I happen to stumble on
> the
> right syntax, I'll be a sport and mention it so that people new to slrn
> can also
> benefit...
>
> Thanks!
> Brian


Re: Setting up editor for slrn
#47115
Author: David Gerard
Date: Sat, 06 Mar 1999 00:00
33 lines
1984 bytes
On Thu, 04 Mar 1999 09:02:37 -0500, Brian Masinick <masinick@yahoo.com> wrote:

:Recently I rebuilt my system, and after I did so, I reinstalled slrn.
:Unfortunately,
:I misplaced my slrn.rc file, not to mention many other configuration
:files.  I just
:got it back on the air last night.  Now I can READ news with slrn.  But
:I tried
:to set up WJED as my editor, and it seems to not be finding it.


I just set up vim 5.3 (and I am utterly in looove with gvim) today. This
is the magic line:

% Command used to invoke editor.  In the following example, %s represents
% the file name and %d represents the starting line number
set editor_command "c:\\vim53\\vim.exe +%d %s"


Note that I specified the exact path name in full.

Also, don't forget the double backslashes :-)

(Just a few minutes ago, I typed a Unix filename with backslashes. I've
been on W*ndows too long.)


-- 
http://thingy.apana.org.au/~fun/                http://xenu.netizen.com.au/
     "I'm sorry for the double slash."
     - Tim Berners-Lee in a Panel Discussion, WWW7, Brisbane, 1998

Re: Setting up editor for slrn
#47241
Author: Brian W. Masinick
Date: Fri, 12 Mar 1999 00:00
464 lines
19129 bytes
I was able to get slrn working with a text editor.  I just made sure
that the editor is in the same directory as slrn.  I'm sure there are
many other approaches that would work as well.

I found myself to have a problem posting news and sending mail.  The
sendsmtp program is in the same directory as slrn, and I think my
NNTPSERVER is set up correctly.  I can read news fine.  But when I go
to post news, I get an error message that seems to be implying that
the NNTP header is incorrect.  That confused me.  What does that mean?
If it refers to the way that the Newsgroups:, Subject:, and
References:, are put together, it would seem to me that slrn should be
managing that.  This implies to me that something is either missing in
my slrn.rc file or I have done something incorrectly.  Which variables
affect posting of messages?  I've set up the NNTP server as
nntp.ne.mediaone,net, which is correct.  Why would it be able to read,
but not post?  I had it working a couple of months ago, but when I
rebuilt my system, I obviously fouled a bunch of things up!  When I
get this right, I'm saving a copy OFF my system in a safe place!

By the way, Gnus, Outlook Express, and Netscape Messenger can post
fine from this system, so it's gotta be a config file issue... my
slrn.rc file is attached below, in case somebody can spot something
erroneous.

Thanks!

-- Brian W. Masinick
mailto:masinick@yahoo.com


% -*- slang -*-
% This is a sample startup file for the slrn news reader.  The percent
% character is used for comments.

% SERVER to NEWSRC mapping
%server "hsdndev.harvard.edu" ".jnewrc-hsdndev"
%server "news.uni-stuttgart.de" ".jnewsrc-stuttgart"
server "nntp.ne.mediaone.net" "jnews.rc"

hostname "nntp.ne.mediaone.net"
set username "masinick"

set realname "Brian Masinick"
set replyto  "masinick@yahoo.com"

% Name of signature file to use
set signature ".signature"

% The quote string will be used when following up/replying
set quote_string "> "

% If non-zero, slrn will not allow you to post articles that contain 
% non-quoted lines whose length exceeds 80 characters.
set reject_long_lines 1

% This regular expression defines lines that are consider to be quoted lines.
% It says that any lines beginning with 0-2 spaces followed by a either
% a >, <, :, |, or = character is a quoted line.
ignore_quotes "^ ? ?[><:=|]"

% This sets the follow-up and reply strings.  Here, the following format 
% specifiers are recognized: 
%    %d:date, %r:real name, %f:email address, %s:subject,
%    %m:msgid, %n:newsgroups, %%: percent 
set followup_string "On %d, %r <%f> wrote:"
set reply_string "In %n, you wrote:"

%Custom headers to add to NEW posts
%set custom_headers "X-Whatever: bla\nX-Misc: bla bla"

% Custom headers for followup/reply.  These can use format specifiers as
% in the 'followup' string variable.
set followup_custom_headers "X-newsgroup: %n\nX-realname: %r\n"
set reply_custom_headers "X-newsgroup: %n\nX-realname: %r\n"


% WWW browser to use.  The 'U' key in article mode searches the current article
% for a URL and then calls X browser if slrn appears to be run in X windows
% and non_Xbrowser otherwise.  Note: The second Xbrowser form assumes that
% netscape is already running.
set non_Xbrowser "netscape %s"
%set Xbrowser "netscape %s &"
%set Xbrowser            "netscape -remote 'openURL(%s)' &"

% If autobaud is present, output rate will be synced to baud rate
%autobaud

% if non-zero, display first article when entering article-mode.
set show_article 0

% if non-zero, show description of newsgroup if available
set show_descriptions 1

% column where group descriptions start
set group_dsc_start_column 40

% If non-zero, backups of the newsrc file are not performed.
set no_backups 0

% If 0, do not beep terminal.  If 1, send audible beep.  If 2, send only 
% visible bell.  If 3, send both.
set beep 1

% If non-zero, slrn will automatically un-subscribe new groups.  
% The default is 0.
set unsubscribe_new_groups 1

% If non-zero, all subject titles will be displayed even though many are
% duplicated.  A zero value makes the screen look less busy.
set show_thread_subject 0

% Enable xterm mouse support: 1 to enable, 0 to disable
set mouse 0

% Set to 1 to have slrn scroll by full page instead of by line.
set scroll_by_page 1

% Setting either of these to 0 will enable you to move directly to the
% next article/group without confirmation
set query_next_group 1
set query_next_article 0

% if zero, you will not see the "next group:" prompt.  This is NOT the same
% as the 'query_next_group' variable.
set prompt_next_group 1

% Set this to 0 for no-confirmation on follow, reply, quit, etc...
set confirm_actions 1

% If 0, do not display the name of the author.
% If 1, display subject then name.  If 2, display name then subject.
set author_display 1

% if 1, display author realname, if 0, display full address
set display_author_realname 1

% If 0, save all groups when writing newsrc file
% if 1, do not save any unsubscribed groups
% if 2, do not save any unread-unsubscribed groups
set write_newsrc_flags 1

% If greater than 0, a Cc: header to poster will automatically be generated on 
% followups.  If -1, prompt first.
set cc_followup 0
set cc_followup_string "[This message has also been posted.]"

% Set to 0 to turn off display of ~ at end of article
set use_tilde 1

% Filename where articles you have posted are archived.
%set save_posts "News/My_Posts"
%set save_replies "News/My_Replies"

% The sendmail command allows you to substitute another mailer.  Be sure that 
% it implements the same interface as sendmail!
%set sendmail_command "/usr/lib/sendmail -oi -t -oem -odb"
set sendmail_command "C:\sendsmtp.exe nntp.ne.mediaone.net"

% Name of score file  (relative to HOME directory)
scorefile "News/Score"

% Articles scoring min_high_score and above constitute a high scoring article.
% Articles scoring below max_low_score define a low scoring article.
% Articles scoring at or below kill_score will be killed.
set min_high_score 1
set max_low_score 0
set kill_score -9999

% Name of directory where decoded files are placed (relative to HOME)
set decode_directory "News"
% Directory where all other files are saved.
set save_directory "News"

% Command used to invoke editor.  In the following example, %s represents
% the file name and %d represents the starting line number
set editor_command "gw32jed %s -g %d -tmp"

% Editor command for editing posts, mail, and score files.
set mail_editor_command "gw32jed %s -g %d -tmp"
set post_editor_command "gw32jed %s -g %d -tmp"
set score_editor_command "gw32jed %s -g %d -tmp"

% If  non-zero, files used for posting, followup and reply will be regarded as
% temporary files in the directory specified by the TMPDIR environment 
% variable or /tmp.
set use_tmpdir 0

% If 0, do not sort.  If 1, perform threading.  If 2, sort by subject
% If 3, thread then sort result by subject
% If 4, sort by score.  If 5, thread then sort by score.
% If 6, sort by score and subject
% If 7, thread, then sort by score and subject
% If 8, sort by date with most recent first
% If 9, thread, then sort by date with most recent first
% If 10, sort by date with most recent last
% If 11, thread then sort by date with most recent last
set sorting_method 1
set display_score 0

% If 1, a header with a new subject will start a new thread.
set new_subject_breaks_threads 0

% If non-zero, threads will be uncollapsed when a group is entered
set uncollapse_threads 0

% If non-zero, slrn will read the active file when starting.   This may lead to
% faster startup times IF your network connection is fast.  If it slow, 
% DO NOT USE IT.  If you can, I recommend setting it to 1.
set read_active 1

% If non-zero and read_active is zero, slrn will attempt to use the NNTP
% XGTITLE command when listing unsubscribed groups.
set use_xgtitle 0

% What to wrap when wrapping an article:
%  0 or 4 ==> wrap body
%  1 or 5 ==> wrap headers, body
%  2 or 6 ==> wrap quoted text, body
%  3 or 7 ==> wrap headers, quoted text, body
% The higher number indicates that every article will be automatically 
% wrapped.
set wrap_flags 4

% Maximum number of articles to read before slrn will prompt.  Default is 100.
% Set this to zero to turn of prompting.
set query_read_group_cutoff 1000

% Numes of lines to read from the server between percentage counter updates
% This number will vary with the speed of the connection to your server
set lines_per_update 100

% Valid character sets: isolatin, ibm850
% ibm850 is the default on OS/2 and isolatin on other systems.
%set charset isolatin

%---------------------------------------------------------------------------
% Mime support
%---------------------------------------------------------------------------
set use_mime 1
set mime_charset "iso-8859-1"
% If non-zero, call metamail for mime formats that slrn does not handle
set use_metamail 1
set metamail_command "netscape"

% If non-zero, header numbers will be displayed in the left-margin of the
% header window.  These numbers may be used as ``thread selectors''.
set use_header_numbers 1

% If non-zero, prompt for reconnection if the NNTP connection drops.  If zero,
% attempt reconnection without asking user.
set query_reconnect 0

% Character to use to hide spoiler text:
set spoiler_char '*'

% set to 0 to keep the display still, and just reveal the spoiler
% set to 1 to start a new page when spoiler is revealed
% set to 2 to keep the display still, and reveal ALL spoilers
% set to 3 to start new page and reveal ALL spoilers
set spoiler_display_mode 1
 
% Help text to be displayed at bottom of screen in various modes:
%set art_help_line "bla bla"
%set header_help_line "more bla bla"
%set group_help_line "and even more"


%---------------------------------------------------------------------------
%  Local spool configuration
%---------------------------------------------------------------------------
% set spool_inn_root "/var/lib/news"
% set spool_root "/var/spool/news"
% set spool_nov_root "/var/spool/news/over.view"
%

%If set to 1, then spool.c will actually check each article file exists when
%reading an overview file.  This adds a perceptible delay (especially in a
%large spool directory), so I've made it an option.  With some servers it is
%almost redundant, whereas with others which don't expire entries from
%overview files regularly, it's almost vital.  If the users sees a lot of
%"article not available" errors, they should probably try turning it on.
set spool_check_up_on_nov 0

%---------------------------------------------------------------------------
% Colors
%---------------------------------------------------------------------------
color header_number     "green"         "lightgray"
color header_name       "green"         "lightgray"
color normal            "black"         "lightgray"
color error             "yellow"        "red"
color status            "yellow"        "blue"
color group             "blue"          "lightgray"
color article           "black"         "lightgray"
color cursor            "green"         "lightgray"
color author            "magenta"       "lightgray"
color subject           "black"         "lightgray"
color headers           "blue"          "lightgray"
color menu              "yellow"        "blue"
color menu_press        "red"           "blue"
color tree              "brown"         "lightgray"
color quotes            "brown"         "lightgray"
color thread_number     "blue"          "lightgray"
color high_score        "red"           "lightgray"
color signature         "brown"         "lightgray"
color description       "black"         "lightgray"
color tilde             "green"         "lightgray"

%-----------------------------------------------------
% Monochrome attributes for monochrome terminals.   One or more attributes
% may be specified.
%-----------------------------------------------------
mono normal		"none"
mono header_number	"none"
mono header_name	"bold"
mono error		"blink" "bold"
mono status		"reverse"
mono group		"bold"
mono article		"none"
mono cursor		"bold"	"reverse"
mono author		"none"
mono subject		"none"
mono headers		"bold"
mono menu		"reverse"
mono menu_press		"none"
mono tree		"bold"
mono quotes		"underline"
mono thread_number	"bold"
mono high_score		"bold"
mono signature		"none"
mono description	"none"
%------------------------  Group keymap------------------------------------

setkey group	add_group	"A"    %  add a new newsgroup
setkey group	bob		"^@G"  %  beg of buffer
setkey group	catch_up	"C"    %  mark group as read
setkey group	down		"^N"   %  next group
setkey group	down		"\xE0P"
setkey group	eob		"^@O"  %  end of buffer
setkey group	group_search_forward	"/"
setkey group	help		"?"
setkey group	pagedown	"^D"   %  next page of groups
setkey group	pagedown	"\xE0Q"
setkey group	pagedown	"^V"
setkey group	pageup		"^U"   %  previous page of groups
setkey group	pageup		"\xE0I"
setkey group	post		"P"
setkey group	quit		"Q"
setkey group	redraw		"^L"
setkey group	redraw		"^R"
setkey group	refresh_groups	"G"
setkey group	save_newsrc	"X"
setkey group	select_group	"\r"   %  read articles from group
setkey group	select_group	" "
setkey group	subscribe	"S"    %  subscribe to group (See unsubscribe)
setkey group	suspend		"^Z"
setkey group	toggle_group_display	"\033A"
setkey group	toggle_scoring	"K"
setkey group	toggle_hidden	"l"
setkey group	toggle_list_all	"L"
setkey group	unsubscribe	"U"    %  unsubscribe
setkey group	up		"^P"   %  previous line
setkey group	up		"\xE0H"

%---------------- Article mode keymap -------------------------------------

setkey article	goto_article	"j"
setkey article	pipe_article	"|"
setkey article	skip_quotes	"\t"

setkey article	pageup		"^U"
setkey article	pageup		"\xE0I"

setkey article	pagedn		"^D"
setkey article	pagedn		"\xE0Q"
setkey article	pagedn		"^V"

setkey article  post "P"
setkey article  toggle_show_author "\ea"
setkey article  get_parent_header "\ep"
setkey article	catchup_all	"c"
setkey article	catchup_all	"\ec"
setkey article	uncatchup_all	"\eu"
setkey article	catchup		"\eC"
setkey article	uncatchup	"\eU"
setkey article	scroll_dn	" "	% scroll to next page of article or select article
setkey article	scroll_up	"^?"	% scroll to next page of article
setkey article	scroll_up	"b"	% (scroll_up or article_pageup)
setkey article  article_lineup	"\e\e[A"	% Scroll article one line up
setkey article  article_lineup	"\e\eOA"
setkey article  article_linedn	"\e\e[B"	% Scroll article one line down
setkey article  article_linedn	"\e\eOB"
setkey article	article_linedn  "\r"
setkey article  article_search	"/"	% Search forward through article
setkey article  author_search_forward	"a"	% Search forward for an author
setkey article  author_search_backward	"A"	% Search backward for an author
setkey article  cancel		"\e^C"	% Cancel the article
setkey article  delete		"d"	% Mark current article as read and move to the next unread one
setkey article  down		"^N"	% Move to the next article
setkey article  down		"\xE0P"
setkey article  mark_spot	";"	% Set mark at current article
setkey article  exchange_mark	","	% Set the mark and return to the location of the previous mark.
setkey article  followup	"f"	% Followup on the article
setkey article  forward		"F"	% Forward the article to someone
setkey article  help		"?"	% Show help screen
setkey article  hide_article	"H"	% Hide the article window.
setkey article  art_eob		">"	% goto the end of the article
setkey article  left		"\xE0K"
setkey article  next		"n"	% next unread article
setkey article  skip_to_next_group	"N"	% next group
setkey article  prev		"p"	% previous unread article
setkey article  quit		"q"	% Quit back to group mode.
setkey article  redraw		"^L"	% Redraw the display
setkey article  redraw		"^R"
setkey article  reply		"r"	% Reply to the author of the current article
setkey article  art_bob		"<"	% goto the beginning of the article
setkey article  right		"\xE0M"
setkey article  save		"O"	% append to a file in Unix mail format
setkey article  subject_search_forward	"s"	% Search forward/backward for an article with a specific subject
setkey article  subject_search_backward	"S"
setkey article  suspend		"^Z"	% Suspend the newsreader
setkey article  toggle_collapse_threads "\et"
setkey article	toggle_rot13	"\eR"
setkey article	toggle_sort	"\eS"
setkey article  toggle_headers	"t"	% Toggle the display of some headers on and off
setkey article  toggle_quotes	"T"
setkey article  undelete    	"u"	% Mark the current article as unread
setkey article  up		"^P"	% Move to the previous article
setkey article  up		"\xE0H"
setkey article	header_bob	"^@G"	% Move to first article in list
setkey article	header_eob	"^@O"	% Move to last article in list
setkey article	shrink_window	"^^"	% Ctrl-6 or Ctrl-^	% Shrink header window
setkey article	enlarge_window	"^"	% Shift-6 or just ^	% Enlarge header window
setkey article  next_high_score	"!"

setkey article  wrap_article	"W"    %  toggle wrapping

%setkey article  skip_to_prev_group ""     % No default binding
%setkey article  fast_quit          ""     % No default binding

% This is a special hack for HP terminals to get the arrow keys working.  
% Are there any other terminals being used with non-ANSI arrow keys?
#if$TERM hpterm
  setkey group up "\eA"
  setkey group down "\eB"
  setkey article down "\eB"
  setkey article up "\eA"
  setkey article left "\eD"
  setkey article right "\eC"
#endif

% Command prompt keymap
setkey readline bol		 "^A"		% Beginning of line
setkey readline eol		 "^E"		% End of line
setkey readline right		 "\xE0M"	% Move right
setkey readline left		 "\xE0K"	% Move left
setkey readline bdel		 "^H"		% Delete backward
setkey readline bdel		 "^?"		% Delete Backward
setkey readline del		 "^D"		% Delete Foreword
setkey readline deleol		 "^K"		% Delete to End of line
setkey readline trim		 "\e/"		% Trim whitespace
setkey readline quoted_insert	 "^Q"		% Quoted insert

Re: Setting up editor for slrn
#47269
Author: Keith
Date: Sat, 13 Mar 1999 00:00
316 lines
12351 bytes
I have added some comments to your settings below.

Keith


On 12 Mar 1999 21:49:19 -0500, Brian W. Masinick 
 <masinick@yahoo.com> wrote:
> 
> I was able to get slrn working with a text editor.  I just made sure
> that the editor is in the same directory as slrn.  I'm sure there are
> many other approaches that would work as well.
> 
> I found myself to have a problem posting news and sending mail.  The
> sendsmtp program is in the same directory as slrn, and I think my
> NNTPSERVER is set up correctly.  I can read news fine.  But when I go
> to post news, I get an error message that seems to be implying that
> the NNTP header is incorrect.  That confused me.  What does that mean?
> If it refers to the way that the Newsgroups:, Subject:, and
> References:, are put together, it would seem to me that slrn should be
> managing that.  This implies to me that something is either missing in
> my slrn.rc file or I have done something incorrectly.  Which variables
> affect posting of messages?  I've set up the NNTP server as
> nntp.ne.mediaone,net, which is correct.  Why would it be able to read,
> but not post?  I had it working a couple of months ago, but when I
> rebuilt my system, I obviously fouled a bunch of things up!  When I
> get this right, I'm saving a copy OFF my system in a safe place!
> 
> By the way, Gnus, Outlook Express, and Netscape Messenger can post
> fine from this system, so it's gotta be a config file issue... my
> slrn.rc file is attached below, in case somebody can spot something
> erroneous.
> 
> Thanks!
> 
> -- Brian W. Masinick
> mailto:masinick@yahoo.com
> 
> 
> % -*- slang -*-
> % This is a sample startup file for the slrn news reader.  The percent
> % character is used for comments.
> 
> % SERVER to NEWSRC mapping
> %server "hsdndev.harvard.edu" ".jnewrc-hsdndev"
> %server "news.uni-stuttgart.de" ".jnewsrc-stuttgart"
> server "nntp.ne.mediaone.net" "jnews.rc"

I believe that you set the server in the autoexec.bat
file and not here. 

> 
> hostname "nntp.ne.mediaone.net"
Change this to any hostname not nntp
> set username "masinick"
> 
> set realname "Brian Masinick"
> set replyto  "masinick@yahoo.com"
> 
> % Name of signature file to use
> set signature ".signature"
> 
> % The quote string will be used when following up/replying
> set quote_string "> "
> 
> % If non-zero, slrn will not allow you to post articles that contain 
> % non-quoted lines whose length exceeds 80 characters.
> set reject_long_lines 1
> 
> % This regular expression defines lines that are consider to be quoted lines.
> % It says that any lines beginning with 0-2 spaces followed by a either
> % a >, <, :, |, or = character is a quoted line.
> ignore_quotes "^ ? ?[><:=|]"
> 
> % This sets the follow-up and reply strings.  Here, the following format 
> % specifiers are recognized: 
> %    %d:date, %r:real name, %f:email address, %s:subject,
> %    %m:msgid, %n:newsgroups, %%: percent 
> set followup_string "On %d, %r <%f> wrote:"
> set reply_string "In %n, you wrote:"
> 
> %Custom headers to add to NEW posts
> %set custom_headers "X-Whatever: bla\nX-Misc: bla bla"
> 
> % Custom headers for followup/reply.  These can use format specifiers as
> % in the 'followup' string variable.
> set followup_custom_headers "X-newsgroup: %n\nX-realname: %r\n"
> set reply_custom_headers "X-newsgroup: %n\nX-realname: %r\n"
> 
> 
> % WWW browser to use.  The 'U' key in article mode searches the current article
> % for a URL and then calls X browser if slrn appears to be run in X windows
> % and non_Xbrowser otherwise.  Note: The second Xbrowser form assumes that
> % netscape is already running.
> set non_Xbrowser "netscape %s"
This is wrong use one of the below, but I haven't used SLRN on windows
so it could be right.

> %set Xbrowser "netscape %s &"
> %set Xbrowser            "netscape -remote 'openURL(%s)' &"
> 
> % If autobaud is present, output rate will be synced to baud rate
> %autobaud
> 
> % if non-zero, display first article when entering article-mode.
> set show_article 0
> 
> % if non-zero, show description of newsgroup if available
> set show_descriptions 1
> 
> % column where group descriptions start
> set group_dsc_start_column 40
> 
> % If non-zero, backups of the newsrc file are not performed.
> set no_backups 0
> 
> % If 0, do not beep terminal.  If 1, send audible beep.  If 2, send only 
> % visible bell.  If 3, send both.
> set beep 1
> 
> % If non-zero, slrn will automatically un-subscribe new groups.  
> % The default is 0.
> set unsubscribe_new_groups 1
> 
> % If non-zero, all subject titles will be displayed even though many are
> % duplicated.  A zero value makes the screen look less busy.
> set show_thread_subject 0
> 
> % Enable xterm mouse support: 1 to enable, 0 to disable
> set mouse 0
> 
> % Set to 1 to have slrn scroll by full page instead of by line.
> set scroll_by_page 1
> 
> % Setting either of these to 0 will enable you to move directly to the
> % next article/group without confirmation
> set query_next_group 1
> set query_next_article 0
> 
> % if zero, you will not see the "next group:" prompt.  This is NOT the same
> % as the 'query_next_group' variable.
> set prompt_next_group 1
> 
> % Set this to 0 for no-confirmation on follow, reply, quit, etc...
> set confirm_actions 1
> 
> % If 0, do not display the name of the author.
> % If 1, display subject then name.  If 2, display name then subject.
> set author_display 1
> 
> % if 1, display author realname, if 0, display full address
> set display_author_realname 1
> 
> % If 0, save all groups when writing newsrc file
> % if 1, do not save any unsubscribed groups
> % if 2, do not save any unread-unsubscribed groups
> set write_newsrc_flags 1
> 
> % If greater than 0, a Cc: header to poster will automatically be generated on 
> % followups.  If -1, prompt first.
> set cc_followup 0
> set cc_followup_string "[This message has also been posted.]"
> 
> % Set to 0 to turn off display of ~ at end of article
> set use_tilde 1
> 
> % Filename where articles you have posted are archived.
> %set save_posts "News/My_Posts"
> %set save_replies "News/My_Replies"
> 
> % The sendmail command allows you to substitute another mailer.  Be sure that 
> % it implements the same interface as sendmail!
> %set sendmail_command "/usr/lib/sendmail -oi -t -oem -odb"
> set sendmail_command "C:\sendsmtp.exe nntp.ne.mediaone.net"

You are sending email to your news server this should be something like
smtp.ne.mediaone.net

> 
> % Name of score file  (relative to HOME directory)
> scorefile "News/Score"
> 
> % Articles scoring min_high_score and above constitute a high scoring article.
> % Articles scoring below max_low_score define a low scoring article.
> % Articles scoring at or below kill_score will be killed.
> set min_high_score 1
> set max_low_score 0
> set kill_score -9999
> 
> % Name of directory where decoded files are placed (relative to HOME)
> set decode_directory "News"
> % Directory where all other files are saved.
> set save_directory "News"
> 
> % Command used to invoke editor.  In the following example, %s represents
> % the file name and %d represents the starting line number
> set editor_command "gw32jed %s -g %d -tmp"
> 
> % Editor command for editing posts, mail, and score files.
> set mail_editor_command "gw32jed %s -g %d -tmp"
> set post_editor_command "gw32jed %s -g %d -tmp"
> set score_editor_command "gw32jed %s -g %d -tmp"

You can put the complete path to the editor here.

> 
> % If  non-zero, files used for posting, followup and reply will be regarded as
> % temporary files in the directory specified by the TMPDIR environment 
> % variable or /tmp.
> set use_tmpdir 0
> 
> % If 0, do not sort.  If 1, perform threading.  If 2, sort by subject
> % If 3, thread then sort result by subject
> % If 4, sort by score.  If 5, thread then sort by score.
> % If 6, sort by score and subject
> % If 7, thread, then sort by score and subject
> % If 8, sort by date with most recent first
> % If 9, thread, then sort by date with most recent first
> % If 10, sort by date with most recent last
> % If 11, thread then sort by date with most recent last
> set sorting_method 1
> set display_score 0
> 
> % If 1, a header with a new subject will start a new thread.
> set new_subject_breaks_threads 0
> 
> % If non-zero, threads will be uncollapsed when a group is entered
> set uncollapse_threads 0
> 
> % If non-zero, slrn will read the active file when starting.   This may lead to
> % faster startup times IF your network connection is fast.  If it slow, 
> % DO NOT USE IT.  If you can, I recommend setting it to 1.
> set read_active 1
> 
> % If non-zero and read_active is zero, slrn will attempt to use the NNTP
> % XGTITLE command when listing unsubscribed groups.
> set use_xgtitle 0
> 
> % What to wrap when wrapping an article:
> %  0 or 4 ==> wrap body
> %  1 or 5 ==> wrap headers, body
> %  2 or 6 ==> wrap quoted text, body
> %  3 or 7 ==> wrap headers, quoted text, body
> % The higher number indicates that every article will be automatically 
> % wrapped.
> set wrap_flags 4
> 
> % Maximum number of articles to read before slrn will prompt.  Default is 100.
> % Set this to zero to turn of prompting.
> set query_read_group_cutoff 1000
> 
> % Numes of lines to read from the server between percentage counter updates
> % This number will vary with the speed of the connection to your server
> set lines_per_update 100
> 
> % Valid character sets: isolatin, ibm850
> % ibm850 is the default on OS/2 and isolatin on other systems.
> %set charset isolatin
> 
> %---------------------------------------------------------------------------
> % Mime support
> %---------------------------------------------------------------------------
> set use_mime 1
> set mime_charset "iso-8859-1"
> % If non-zero, call metamail for mime formats that slrn does not handle
> set use_metamail 1
> set metamail_command "netscape"
> 
> % If non-zero, header numbers will be displayed in the left-margin of the
> % header window.  These numbers may be used as ``thread selectors''.
> set use_header_numbers 1
> 
> % If non-zero, prompt for reconnection if the NNTP connection drops.  If zero,
> % attempt reconnection without asking user.
> set query_reconnect 0
> 
> % Character to use to hide spoiler text:
> set spoiler_char '*'
> 
> % set to 0 to keep the display still, and just reveal the spoiler
> % set to 1 to start a new page when spoiler is revealed
> % set to 2 to keep the display still, and reveal ALL spoilers
> % set to 3 to start new page and reveal ALL spoilers
> set spoiler_display_mode 1
>  
> % Help text to be displayed at bottom of screen in various modes:
> %set art_help_line "bla bla"
> %set header_help_line "more bla bla"
> %set group_help_line "and even more"
> 
> 
> %---------------------------------------------------------------------------
> %  Local spool configuration
> %---------------------------------------------------------------------------
> % set spool_inn_root "/var/lib/news"
> % set spool_root "/var/spool/news"
> % set spool_nov_root "/var/spool/news/over.view"
> %


-- P
HTH,

Keith

Keith Wyatt,  PGP key via finger
http://www.teleport.com/~kew
http://www.teleport.com/~kew/linux








Re: Setting up editor for slrn
#47410
Author: David E. Fox
Date: Sun, 21 Mar 1999 00:00
34 lines
2283 bytes
In article <wklnh2ums0.fsf@yahoo.com>, Brian W. Masinick wrote:

>I was able to get slrn working with a text editor.  I just made sure
>that the editor is in the same directory as slrn.  I'm sure there are
>many other approaches that would work as well.

This shouldn't be necessary, but you might specify the explicit
path in the $EDITOR variable (/usr/bin/vim, for instance). I haven't
had a problem here.

>I found myself to have a problem posting news and sending mail.  The
>sendsmtp program is in the same directory as slrn, and I think my
>NNTPSERVER is set up correctly.  I can read news fine.  But when I go
>to post news, I get an error message that seems to be implying that
>the NNTP header is incorrect.  That confused me.  What does that mean?

I'm having a similar problem (see my post about posting troubles)
as you, I think. In my case, it's slrn (which works) vs. KDE's krn
and kexpress (and gnus) which don't. In my situation, these other
newsreaders cause an "Article has no body -- just headers" message 
to be emitted from the nntp server. Visually the messages look
OK, and they can be posted (manually) by inews.

Maybe we can compare notes?


-- 
------------------------------------------------------------------------
David E. Fox                 Tax              Thanks for letting me
dfox@belvdere.vip.best.com   the              change magnetic patterns
root@belvedere.sbay.org      churches         on your hard disk.
-----------------------------------------------------------------------

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