🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Lars Stokholm Thu, 04 Mar 2004 17:41
[slrn] Group-dependent attribution line
#144446
Author: Lars Stokholm
Date: Thu, 04 Mar 2004 17:41
9 lines
1382 bytes
I want to have a danish attribution line on follow-ups, for danish
groups, and an english one, for all other groups. I bet it's possible
with a macro, but how?

-- 
Lars Stokholm                  " Everything under the sun is in tune,
                                 but the sun is eclipsed by the moon. "

                                               - Pink Floyd (Eclipse)
Re: [slrn] Group-dependent attribution line
#144448
Author: Janne Nikula
Date: Thu, 04 Mar 2004 18:15
38 lines
2228 bytes
Lars Stokholm <monospam@mail.dk> wrote:
> I want to have a danish attribution line on follow-ups, for danish
> groups, and an english one, for all other groups. I bet it's possible
> with a macro, but how?

In my .slrnrc I have:

#v+
interpret "News/attr.sl"
#v-

In News/attr.sl I have:

#v+
define AttributionToUse()
{       
        % English is the default language
        set_string_variable ("followup_string", "%r <%f> wrote:");

        % The anarchistic Finnish hierarchy
        if (0 == strncmp (current_newsgroup (), "finet.", 6))
                set_string_variable ("followup_string", "%r <%f> kirjoitti:");

        % The local hierarchy of Helsinki Television, my ISP
        if (0 == strncmp (current_newsgroup (), "htv.", 4))
                set_string_variable ("followup_string", "%r <%f> kirjoitti:");

        % The coordinated Finnish hierarchy
        if (0 == strncmp (current_newsgroup (), "sfnet.", 6))
                set_string_variable ("followup_string", "%r <%f> kirjoitti:");
}

() = register_hook ( "article_mode_hook", "AttributionToUse");
#v-

I don't recall if I wrote that myself or if I copied it from somewhere
else. Anyway, just changing the hierarchy names and using Danish in the
strings should do what you're after.
Re: [slrn] Group-dependent attribution line
#144449
Author: Lars Stokholm
Date: Thu, 04 Mar 2004 18:47
13 lines
1424 bytes
In news.software.readers, Janne Nikula wrote:

> I don't recall if I wrote that myself or if I copied it from somewhere
> else. Anyway, just changing the hierarchy names and using Danish in the
> strings should do what you're after.

Thanks.

-- 
Lars Stokholm                  " Everything under the sun is in tune,
                                 but the sun is eclipsed by the moon. "

                                               - Pink Floyd (Eclipse)
Re: [slrn] Group-dependent attribution line
#144456
Author: Emmanuele Bassi
Date: Fri, 05 Mar 2004 01:07
16 lines
1747 bytes
* Lars Stokholm [2004-03-04 18:41]:

> I want to have a danish attribution line on follow-ups, for danish
> groups, and an english one, for all other groups. I bet it's possible
> with a macro, but how?

http://www.emmanuelebassi.net/slrn/identity.sl

That'd do it. :-)

Bye,
 Emmanuele.

-- 
Emmanuele Bassi                    [ http://www.emmanuelebassi.net/slrn/ ]
GnuPG Key fingerprint = 4DD0 C90D 4070 F071 5738  08BD 8ECC DB8F A432 0FF4
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