Article View: news.software.readers
Article #230576Re: [slrn] signature selection dependent on hierarchy, howto?
From: Michael Grimm
Date: Sun, 22 Feb 2009 17:24
Date: Sun, 22 Feb 2009 17:24
38 lines
2645 bytes
2645 bytes
John E. Davis <jed@jedsoft.org> wrote:
> In "/path/to/slrn-signature.sl", put:
>
> private define set_signature ()
> {
> variable group = current_newsgroup ();
> variable sigfile = "$HOME/.signature"$;
>
> if (string_match (group, "^news", 1))
> sigfile = "${HOME}/.slrn_news_signature"$;
> else if (string_match (group, "^comp", 1))
> sigfile = "${HOME}/.slrn_comp_signature"$;
> else if (group == "alt.test")
> sigfile = "${HOME}/.slrn_alt_test_signature"$;
>
> set_string_variable ("signature", sigfile);
> }
> register_hook ("article_mode_hook", &set_signature);
>
> That is all there is to it. Of course you will need to create the
> appropriate signature files and add your own tests.
Thank you! It works, almost ;-) Whenever I start slrn and start with
posting to a newsgroup then .signature will be used, and not the ones
defined in this macro. Whenever I start slrn and start with making a
follow-up to an article (right now to yours) then everything works as
expected.
Any idea what to modify?
JFTR: I extended it to modify signoff_string as well. But, same
behavior regarding way of first usage.
Regards,
Michael
--
news hierarchy signature
Technical Details
Message-ID:
<gns1oa$1ai6$1@de-l.enfer-du-nord.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.news.weretis.net!weretis.net!de-l.enfer-du-nord.net!not-for-mailReferences:
<gnpkl9$14io$2@de-l.enfer-du-nord.net> <slrngq1bp7.prc.me@wannes.invalid> <slrngq2gn9.fb4.houghi@pasta.houghi> <slrngq2ihl.323.me@wannes.invalid> <slrngq2jve.4os.me@wannes.invalid> <slrngq2ls8.fb4.houghi@pasta.houghi> <slrngq2noc.6h6.houghi@pasta.houghi> <slrngq2rh2.jlt.jed@aluche.mit.edu>Show Full Headers
Complete Article Headers
Message-ID: <gns1oa$1ai6$1@de-l.enfer-du-nord.net> Subject: Re: [slrn] signature selection dependent on hierarchy, howto? Date: Sun, 22 Feb 2009 17:24:27 +0000 From: Michael Grimm <trashcan@odo.in-berlin.de> References: <gnpkl9$14io$2@de-l.enfer-du-nord.net> <slrngq1bp7.prc.me@wannes.invalid> <slrngq2gn9.fb4.houghi@pasta.houghi> <slrngq2ihl.323.me@wannes.invalid> <slrngq2jve.4os.me@wannes.invalid> <slrngq2ls8.fb4.houghi@pasta.houghi> <slrngq2noc.6h6.houghi@pasta.houghi> <slrngq2rh2.jlt.jed@aluche.mit.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!feeder1.news.weretis.net!weretis.net!de-l.enfer-du-nord.net!not-for-mail Newsgroups: news.software.readers Organization: ATK - Alternative Tierklinik links der Einfalt Lines: 38 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: de-l.enfer-du-nord.net eJwFwQkBwDAIA0BLZA1P5QAF/xJ2p8dg7TQ16upeBiW+s1IHgY3kKKidW9H45l3H0G8SLZryoV5K13MbDqC5omZdYHrOD7D/GdI= X-Complaints-To: abuse@de-l.enfer-du-nord.net Cancel-Lock: sha1:qKIaOhpD1AmxhehoQTtVUVVWbVs= User-Agent: slrn/0.9.9p1/mm/ao (Darwin) Mail-Copies-To: nobody