Article View: news.software.readers
Article #48850Re: [slrn] Random sigs again
From: Jens Wahnes
Date: Wed, 26 May 1999 00:00
Date: Wed, 26 May 1999 00:00
57 lines
2724 bytes
2724 bytes
Remco Gerlich wrote:
> I want to include random signatures in my posts with slrn 0952
> (will upgrade soon). Using DejaNews I found the nice solution
> with set editor "getsig >.sigfile; emacs", etc. However, I want
> the signature to depend on the newsgroup(s) I'm posting to,
> like Dutch sigs only in Dutch groups, Angband related quotes
> only to the Angband group, etc.
A while ago, somebody posted code for a s-lang macro to set the
signature depending on the name of the newsgroup. I can't find the
original article so I'm afraid I cannot give credit for this. Here
is my slightly extended version of the macro:
define article_mode_hook ()
{
variable signature_file = ".signature-eng"; % english signature
variable reply_s = "In %n, you wrote:\n"; %etc
variable cc_fup_s = "[This messages has also been posted to a newsgroup]\n";
variable followup_s = "%r wrote:\n";
variable newsgroup = current_newsgroup ();
if (orelse
{ string_match (newsgroup, "^de\.", 1) }
{ string_match (newsgroup, "^kl\.", 1) }
{ string_match (newsgroup, "^schule\.", 1) }
{ string_match (newsgroup, "^local\.test\.", 1) })
{
signature_file = ".signature"; % german signature
followup_s = "%r schrieb am %d folgendes:\n";
reply_s = "Hallo %r,\nDu schriebst am %d in %n:\n";
cc_fup_s = "[Dies ist die Kopie eines Artikels, der in eine Newsgruppe gepostet wurde]";
}
set_string_variable ("signature", signature_file);
set_string_variable ("followup_string", followup_s);
set_string_variable ("cc_followup_string", cc_fup_s);
set_string_variable ("reply_string", reply_s);
}
If you change the command that is executed before calling the editor
in such a way that it changes all signature files, this might work.
Maybe somebody else has an easier solution for this?
Jens
--
"What is robbing a bank compared with founding a bank?"
- Bertolt Brecht
Technical Details
Message-ID:
<slrn7koerb.4i7.jewa@message-id.wahnes-world.de>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:
<slrn7knp73.1mp.scarblac-spamtrap@flits104-37.flits.rug.nl>Show Full Headers
Complete Article Headers
Message-ID: <slrn7koerb.4i7.jewa@message-id.wahnes-world.de> Subject: Re: [slrn] Random sigs again Date: Wed, 26 May 1999 00:00:00 +0000 From: jewa@gmx.net (Jens Wahnes) References: <slrn7knp73.1mp.scarblac-spamtrap@flits104-37.flits.rug.nl> 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: 482405260 X-NNTP-Posting-Host: localhost Supersedes: <slrn7koepf.4d7.jewa@message-id.wahnes-world.de> Organization: Wahnes World User-Agent: slrn/0.9.5.6 (UNIX) Newsgroups: news.software.readers