Article View: news.software.readers
Article #39720Re: [slrn] changing from line per newsgroup?
From: Preben 'Peppe' Guldberg
Date: Mon, 23 Mar 1998 00:00
Date: Mon, 23 Mar 1998 00:00
43 lines
2043 bytes
2043 bytes
Thus wrote Zebee Johnstone <zebee@lute.orchestra.cse.unsw.EDU.AU>:
> I'd like to have some macro or definition in slrn that
> changes the "from" line depending on the newsgroup.
> Just want to change the realname field.
> Is this possible?
You can do this with article_mode_hook. This is defined in a file (eg
.slrn.sl) that is read while reading .slrnrc if you have the following
line in .slrn.rc
interpret .slrn.sl
A fictive example for me with a couple of names that applies in groups
with either "dk" or "denmark" in the name:
define article_mode_hook ()
{
if (is_substr (current_newsgroup (), "dk")
or is_substr (current_newsgroup (), "denmark"))
{
set_string_variable ("realname", "Peppe");
}
else
{
set_string_variable ("realname", "Preben Guldberg");
}
}
Note: you must enter the group where you want to post or the hook will
not apply.
Peppe
--
Preben Guldberg __/-\__ The woods are lovely, dark and deep
c928400@student.dtu.dk (o o) But I have promises to keep
----------------------oOOo (_) oOOo-- And miles to go before I sleep.
http://www.student.dtu.dk/~c928400 --Robert Frost
Technical Details
Message-ID:
<slrn6hbodl.1pp.c928400@urdybet.bergsoe.dtu.dk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn6hbim4.hqr.zebee@lute.orchestra.cse.unsw.EDU.AU>Show Full Headers
Complete Article Headers
Message-ID: <slrn6hbodl.1pp.c928400@urdybet.bergsoe.dtu.dk> Subject: Re: [slrn] changing from line per newsgroup? Date: Mon, 23 Mar 1998 00:00:00 +0000 From: c928400@student.dtu.dk (Preben 'Peppe' Guldberg) References: <slrn6hbim4.hqr.zebee@lute.orchestra.cse.unsw.EDU.AU> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 336715132 X-Complaints-To: usenet@news.net.uni-c.dk X-Trace: news.net.uni-c.dk 890626565 12140 (None) 130.225.71.226 Organization: k-net Reply-To: c928400@student.dtu.dk Newsgroups: news.software.readers