🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #116199

Re: [SLRN] compose-hook() ???

#116199
From: reggie
Date: Tue, 17 Dec 2002 21:40
49 lines
1963 bytes
Lee J. Moore wrote:
> Apologies if I've overlooked something here, but - is there a
> hook in SLRNs intrinsic functions - that is called after the
> user has decided to compose an article, but just before it's
> loaded up into the editor.
> 
> A compose-hook() if you like.
> 
> post-file-hook() and post-filter-hook() are both called after
> the message has been composed and post-hook() doesn't seem
> useful for this purpose at all.


Myself being new to this, I suggest using

followup_hook, reply_hook and post_hook

e.g.

define my_rules ()
{
    % whatever you want
}


define followup_hook ()
{
    my_rules ();
}

define reply_hook ()
{
    my_rules ();
}

define post_hook ()
{
    my_rules ();
}


This is what I did to make an effective signature swap (dependant on
news group).  There may be a better way, but this is effective.


-- 
regards,
reggie.
Technical Details
Message-ID: <FRML9.182113$ea.3697032@news2.calgary.shaw.ca>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.cwix.com!prodigy.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news2.calgary.shaw.ca.POSTED!not-for-mail
References: <slrnavu70p.6gb.leej@cafe.lan>

Show Full Headers
Complete Article Headers
Message-ID: <FRML9.182113$ea.3697032@news2.calgary.shaw.ca>
Subject: Re: [SLRN] compose-hook() ???
Date: Tue, 17 Dec 2002 21:40:53 GMT
From: reggie <reggie@_reggieband.com>
References: <slrnavu70p.6gb.leej@cafe.lan>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.cwix.com!prodigy.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news2.calgary.shaw.ca.POSTED!not-for-mail
X-Trace-PostClient-IP: 24.84.22.33
Newsgroups: news.software.readers
Organization: ReggieBand productions
Reply-To: reggie@reggieband.com
User-Agent: slrn/0.9.7.4 (CYGWIN_NT-5.0)
Lines: 48
NNTP-Posting-Host: 24.69.255.206
X-Complaints-To: abuse@shaw.ca
X-Trace: news2.calgary.shaw.ca 1040161253 24.69.255.206 (Tue, 17 Dec 2002 14:40:53 MST)
NNTP-Posting-Date: Tue, 17 Dec 2002 14:40:53 MST