🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #230606

Re: [slrn] signature selection dependent on hierarchy, howto?

#230606
From: John E. Davis
Date: Mon, 23 Feb 2009 23:08
24 lines
2455 bytes
On 23 Feb 2009 22:37:53 GMT, Allodoxaphobia <bit-bucket@config.com>
wrote:
> I'm unclear where this is to be added.  Or, do I have what's needed in 
> identity.sl already?:
>
>   !if (1 == register_hook ("post_hook", "identity->assign"))
>      error ("identity.sl: register_hook (post_hook)");
>
>   !if (1 == register_hook ("followup_hook", "identity->assign"))
>      error ("identity.sl: register_hook (followup_hook)");

That looks ok, assuming that identity->assign is the name of the hook.

slrn supports a number of hooks, and because some overlap, it is not
always clear which one should be used.  For example, the original
poster want to set the signature based upon the name of the current
newsgroup.  So, I suggested using the "article_mode_hook", which gets
run when article-mode is entered.  The advantage of using the
"followup_hook" instead of "article_mode_hook" is that you can
customize the name of the signature file on an article-by-article
basis.  In that sense, it may be a better choice than the
"article_mode_hook".

--John
Technical Details
Message-ID: <slrngq6b30.rgv.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!pe2.news.blueyonder.co.uk!blueyonder!news-peer!btnet!newspeer.monmouth.com!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail
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> <gns1oa$1ai6$1@de-l.enfer-du-nord.net> <slrngq3rg7.uud.jed@aluche.mit.edu> <slrngq69a0.271.bit-bucket@shell.config.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrngq6b30.rgv.jed@aluche.mit.edu>
Subject: Re: [slrn] signature selection dependent on hierarchy, howto?
Date: Mon, 23 Feb 2009 23:08:16 +0000
From: "John E. Davis" <jed@jedsoft.org>
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> <gns1oa$1ai6$1@de-l.enfer-du-nord.net> <slrngq3rg7.uud.jed@aluche.mit.edu> <slrngq69a0.271.bit-bucket@shell.config.com>
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!pe2.news.blueyonder.co.uk!blueyonder!news-peer!btnet!newspeer.monmouth.com!newsswitch.lcs.mit.edu!bloom-beacon.mit.edu!senator-bedfellow.mit.edu!dreaderd!not-for-mail
Newsgroups: news.software.readers
Reply-To: davis@space.mit.edu
User-Agent: slrn/pre1.0.0-2 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 24
NNTP-Posting-Host: ALUCHE.MIT.EDU
X-Trace: 1235430496 senator-bedfellow.mit.edu 302 18.75.2.45