🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
13 messages
13 total messages Started by Desmond Coughlan Tue, 09 Nov 1999 00:00
How to Edit in slrn ..?
#53903
Author: Desmond Coughlan
Date: Tue, 09 Nov 1999 00:00
17 lines
1148 bytes
In slrn, I've set my editor for posts and follow-ups to emacs.  Can
someone tell me how I can tell slrn that I want it to start in an
xterm, and not on its own shell?

Also, how do I set the 'From' header to something to defeat spam?

Many thanks.

D.


-- 
Desmond Coughlan		|Restez Zen ... UNIX peut le faire
desmond@coughlan.net
http://212.198.64.228/

Re: How to Edit in slrn ..?
#53860
Author: Bruce Schultz
Date: Tue, 09 Nov 1999 00:00
18 lines
1285 bytes
desmond@tortue.coughlan.net (Desmond Coughlan) writes:

> In slrn, I've set my editor for posts and follow-ups to emacs.  Can
> someone tell me how I can tell slrn that I want it to start in an
> xterm, and not on its own shell?

Set the command to "emacs -nw"
 
> Also, how do I set the 'From' header to something to defeat spam?

Don't.  Use procmail.
 

-- 
Bruce Schultz
jbs@galstar.com

Re: How to Edit in slrn ..?
#53871
Author: Paul Kimoto
Date: Tue, 09 Nov 1999 00:00
11 lines
1207 bytes
In article <slrn82gd9e.oe.desmond@tortue.coughlan.net>, Desmond Coughlan wrote:
> With regard to using emacs, I've decided just to stick with vi for editing
> posts.  It's a hell of a lot quicker to start than emacs !

If you already have an emacs running (in its own X window), you can use
that one; look for "emacsclient" or "gnuclient".

-- 
Paul Kimoto             <kimoto@lightlink.com>

Re: How to Edit in slrn ..?
#53875
Author: Desmond Coughlan
Date: Tue, 09 Nov 1999 00:00
18 lines
1623 bytes
Paul Kimoto <kimoto@lightlink.com> wrote: 

}> > With regard to using emacs, I've decided just to stick with vi for editing
}> > posts.  It's a hell of a lot quicker to start than emacs !

}> If you already have an emacs running (in its own X window), you can use
}> that one; look for "emacsclient" or "gnuclient".

Well, no, because I had been promising myself that I would get off my bum and
learn vi ... at work, none of the UNIX boxes have emacs ... now I have the
perfect excuse to learn it.  :-)

-- 
Desmond Coughlan		|Restez Zen ... UNIX peut le faire
desmond@coughlan.net			
http://212.198.64.228/

Re: How to Edit in slrn ..?
#53880
Author: Desmond Coughlan
Date: Tue, 09 Nov 1999 00:00
23 lines
1609 bytes
On 9 Nov 1999 14:25:47 GMT, Heikki Kantola <hezu@iki.fi> wrote:

[snip]

With regard to using emacs, I've decided just to stick with vi for editing
posts.  It's a hell of a lot quicker to start than emacs !

}> >> Also, how do I set the 'From' header to something to defeat spam?

}> Congrats! "How to change my From" is a FAQ, see Q#13 at <URL:http://
}> space.mit.edu/%7Edavis/slrn-FAQ.html>. And if you decide to munge your
}> address, don't forget to change the top-level domain into ".invalid".

OK, thanks, but that URL doesn't work.  :-(

[snip]

-- 
Desmond Coughlan		|Restez Zen ... UNIX peut le faire
desmond@coughlan.net
http://212.198.64.228/

Re: How to Edit in slrn ..?
#53887
Author: Desmond Coughlan
Date: Tue, 09 Nov 1999 00:00
27 lines
1868 bytes
On 9 Nov 1999 13:55:11 GMT, Jens Wahnes <jewa@gmx.net> wrote:

}> > In slrn, I've set my editor for posts and follow-ups to emacs.  Can
}> > someone tell me how I can tell slrn that I want it to start in an
}> > xterm, and not on its own shell?

}> Try xterm -e emacs or something similar.

Thanks.  :-)

}> > Also, how do I set the 'From' header to something to defeat spam?

}> Choose a provider that filters incoming email.

It's not as easy as that.  If you look at this post, you'll see that it comes
from tortue.coughlan.net.  Coughlan.net exists, but not the host, tortue 
in that domain.  As a result, all the spams get forwarded to my brother, 
who registered the name.  It's not really the end of the world if I get
spams, but he has nothing to do with newsgroups, and it's a pain for him.
All I want to do is to change the 'from' header ... 

-- 
Desmond Coughlan		|Restez Zen ... UNIX peut le faire
desmond@coughlan.net
http://212.198.64.228/

Learning Vi - some docs (Re: How to Edit in slrn ..?)
#53892
Author: Sven Guckes
Date: Tue, 09 Nov 1999 00:00
23 lines
1946 bytes
> > > > I've decided just to stick with vi for editing posts.
> > > > It's a hell of a lot quicker to start than emacs !
> > > If you already have an emacs running (in its own X window),
> > > you can use that one; look for "emacsclient" or "gnuclient".

* Desmond Coughlan <desmond@tortue.coughlan.net>:
> Well, no, because I had been promising myself that
> I would get off my bum and learn vi ... at work,
> none of the UNIX boxes have emacs ... now
> I have the perfect excuse to learn it.  :-)

And there are some fine docs available for that:
http://www.math.fu-berlin.de/~guckes/vi/#docs

Sven

-- 
Sven Guckes@math.fu-berlin.de - using Vi "Version SVR3.1" on SUN 4.1.3 [971205]
The VI Pages:  http://www.math.fu-berlin.de/~guckes/vi/  All about VI clones!
calvin, elvis,  elwin, javi, lemmy, nvi,   pvic,| BBstevie, MKS vi, OAK Hill Vi,
stevie, trived, vile,  vim,  vip,   winvi, xvi. | Watcom-Vi, xemacs "viper mode"

Re: How to Edit in slrn ..?
#53898
Author: Jens Wahnes
Date: Tue, 09 Nov 1999 00:00
21 lines
1203 bytes
Desmond Coughlan wrote:

> In slrn, I've set my editor for posts and follow-ups to emacs.  Can
> someone tell me how I can tell slrn that I want it to start in an
> xterm, and not on its own shell?

Try xterm -e emacs or something similar.

> Also, how do I set the 'From' header to something to defeat spam?

Choose a provider that filters incoming email.


Jens

-- 
"What is robbing a bank compared with founding a bank?"

        - Bertolt Brecht

Re: How to Edit in slrn ..?
#53902
Author: Heikki Kantola
Date: Tue, 09 Nov 1999 00:00
32 lines
2211 bytes
Jens Wahnes <jewa@gmx.net> informed
news.software.readers with the following:
>Desmond Coughlan wrote:
>> In slrn, I've set my editor for posts and follow-ups to emacs.  Can
>> someone tell me how I can tell slrn that I want it to start in an
>> xterm, and not on its own shell?
>
>Try xterm -e emacs or something similar.

That's if you want extra xterm, Emacs' "-nw" option is propably what
Desmond needs. And yet I think that firing up Emacs for news articles
is somewhat bloated concept and prefer using Jed[1] (by same author as
Slrn) as my news and mail editor.

>> Also, how do I set the 'From' header to something to defeat spam?

Congrats! "How to change my From" is a FAQ, see Q#13 at <URL:http://
space.mit.edu/%7Edavis/slrn-FAQ.html>. And if you decide to munge your
address, don't forget to change the top-level domain into ".invalid".

>Choose a provider that filters incoming email.

And complain about every spam which gets thru.

[1] <URL:http://space.mit.edu/%7Edavis/jed.html>
-- 
  *  H e i k k i   K a n t o l a  *  | Report all instances that you see
   IRC: Hezu                         | of spam abuse. Civilized people need
E-Mail: Heikki.Kantola@IKI.FI        | to treat their meat products with
   WWW: <URL:http://www.iki.fi/hezu/>| more respect  :) -- MrElcee@IRC

Re: How to Edit in slrn ..?
#53904
Author: Paul Kimoto
Date: Tue, 09 Nov 1999 00:00
13 lines
1171 bytes
In article <slrn82fvtv.fe.desmond@tortue.coughlan.net>, Desmond Coughlan wrote:
> In slrn, I've set my editor for posts and follow-ups to emacs.  Can
> someone tell me how I can tell slrn that I want it to start in an
> xterm, and not on its own shell?

If you mean, "I want the new emacs to appear in the same place as slrn,
rather than somewhere else on my X display", then you should set the editor
to "emacs -nw" (rather than "emacs").

-- 
Paul Kimoto             <kimoto@lightlink.com>

Re: How to Edit in slrn ..?
#53905
Author: Anthony
Date: Tue, 09 Nov 1999 00:00
22 lines
1736 bytes
<desmond@tortue.coughlan.net> wrote:
>In slrn, I've set my editor for posts and follow-ups to emacs.  Can
>someone tell me how I can tell slrn that I want it to start in an
>xterm, and not on its own shell?

Start another xterm in ~/.slrnrc
set editor_command "xterm -e emacs '%s' &"
set post_editor_command "xterm -e emacs '%s' &"
set mail_editor_command "xterm -e emacs '%s' &"
set score_editor_command "xterm -e emacs '%s' &"

You must set all of the above to override the default settings
in /usr/lib/slrn/slrnrc if one exists.

>Also, how do I set the 'From' header to something to defeat spam?

99.9% of "From:" header are spoofed and spammer dont spam just
one or two people, so most "To:" header is also spoofed.  You can
check if the "To:" header is your mail address, you stand a better
chance to filter out spam.

Re: How to Edit in slrn ..?
#53955
Author: Sylvan Butler
Date: Thu, 11 Nov 1999 00:00
99 lines
3982 bytes
On 9 Nov 1999 11:02:39 GMT, Desmond Coughlan <desmond@tortue.coughlan.net> wrote:
>Also, how do I set the 'From' header to something to defeat spam?

Here is the macro I use (with some string constants slightly altered):

=======================
%
% set up for munged username and handle custom reply-to in specified groups
%

variable ReplyTo = "";   % hold desired valid reply to, used in groups below

define post_hook ()
{
   if (0 == strncmp (current_newsgroup, "loc.", 4) or
       0 == strncmp (current_newsgroup, "myisp.", 6)
   )
      set_string_variable ("replyto",ReplyTo);
   else
      set_string_variable ("replyto","");
}

define followup_hook ()
{
   post_hook();
}


define reply_hook ()
{
   set_string_variable ("replyto","");
}


define forward_hook ()
{
   reply_hook ();
}



{
% 'hostname' is not a set'able string value  (until 0.9.5.5)
% .slrnrc should specify default hostname, OR
% HOSTNAME environment variable should specify munged name
% posting_host is accessable via a patch:
%   --- slrn/src/startup.c  Sun May 16 23:27:02 1999
%   +++ slrn-mine/src/startup.c Mon May 17 13:38:13 1999
%   @@ -453,6 +453,7 @@
%         {"username", &Slrn_User_Info.username},
%         {"replyto", &Slrn_User_Info.replyto},
%         {"organization", &Slrn_User_Info.org},
%   +     {"posting_host", &Slrn_User_Info.posting_host},
%         {"followup", &Slrn_User_Info.followup_string},   /* obsolete */
%         {"followup_string", &Slrn_User_Info.followup_string},
%         {"reply_string", &Slrn_User_Info.reply_string},
   variable host = getenv("HOSTNAME");
   if ( NULL == host ) {
      host=get_variable_value("posting_host");
   }
   if (0 == strncmp (host, "Hostname.work", 8)) {
      ReplyTo = "My@RealAddress.work";
      host="A.Munged.Hostname.invalid";
      set_string_variable ("posting_host",host);
      set_string_variable ("hostname",host);
   } else {
      ReplyTo = "My@RealAddress.home";
% my isp won't allow: host="A.Munged.Hostname.invalid";
      set_string_variable ("posting_host",host);
      set_string_variable ("hostname",host);
   }

% USER environment variable should specify munged name
% I prefer setting it in the script that starts slrn using 'date'
%   USER=nospam+`date +%y%m`
   variable user = getenv("USER");
   if ( NULL == user ) {
      user = "unknown";
   }
   set_string_variable ("username",user);

% OK, let's see what we ended up with...
   printf ("\n  Address now:  \"%s@%s\"",user,host);
   printf ("\n  With \"Reply-To: %s\" in certain groups",ReplyTo);
   printf ("\n  (and hostname: %s)",get_variable_value("hostname"));
}

% vim:set tw=0 ts=3 fo=vtcq:
=======================

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: How to Edit in slrn ..?
#55100
Author: Brian Masinick
Date: Fri, 10 Dec 1999 00:00
17 lines
1209 bytes
How about using Jed or Wjed as your editor for posts and follow-ups?  Jed is
a small, yet powerful editor, keeping in tradition with slrn, and it is
written by the same person, John E. Davis, from the MIT Space Lab.  See:
http://space.mit.edu/~/davis/jed.html

On 9 Nov 1999 11:02:39 GMT, Desmond Coughlan <desmond@tortue.coughlan.net>
wrote:

>In slrn, I've set my editor for posts and follow-ups to emacs.  Can
>someone tell me how I can tell slrn that I want it to start in an
>xterm, and not on its own shell?

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

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