🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #198552

Re: OT: auto followup macro (Was: [slrn] scoring whole threads)

#198552
From: Peter J Ross
Date: Wed, 25 Apr 2007 19:58
61 lines
3688 bytes
On Wed, 25 Apr 2007 22:44:09 +1000, Troy Piggins <usenet@piggo.com>
wrote in news.software.readers:

> * Chris Game is quoted & my replies are inline below :
>> On 2007-04-23, Troy Piggins <usenet@piggo.com> wrote:
>>
>>> I just had a little play with the macro below (code hacked from
>>> onekey score macro).  As defined by the last line, hitting
>>><esc>-k on an article will get all the parent articles, kill the
>>> OP subject heading, and also kill any references to the OP M-ID,
>>> even if the subject is changed.
>>>
>>> [...]
>>
>> How about posting one reply with <PLONK!> appended, to the thread or 
>> the OP?
>
>:-) I would never use this, but the thought of how to do it
> intrigued me.  So I tried it and this works:
>
> #v+
> define auto_followup(){
>
>   variable abort_unmodified_edits=get_variable_value("abort_unmodified_edits");
>   variable editor_command=get_variable_value("editor_command");
>   variable signature=get_variable_value("signature");
>
> % ** change the editor to cat file.  Change path accordingly **
>   set_string_variable ("editor_command", "cat /path/to/file >> '%s'");
>
>   set_string_variable ("signature","");
>   set_integer_variable ("abort_unmodified_edits", 0);
>
>   set_input_chars ("yy");
>   set_prefix_argument(1);
>   call ("followup");
>
>   set_string_variable ("editor_command", editor_command );
>   set_string_variable ("signature", signature );
>   set_integer_variable ("abort_unmodified_edits",abort_unmodified_edits);
>
> }
>
> definekey ("auto_followup", "\e8", "article");
> #v-
>
> "file" is a text file that contains the text to be appended -
> like the word "plonk" and your signature.  Use the full path.
>
> Hit <esc>-8 to automatically followup the current article by
> appending text from "file" to the message.
>
> ** Warning - there is no confirmation, it is fully automatic.
> Please don't test it in non-test groups. **

I know you only wrote it for fun, but anybody thinking of using it
should Google "Breidbart Index" soon.


-- 
PJR :-)
Technical Details
Message-ID: <slrnf2vcno.j3f.pjr@pjr.gotdns.org>
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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!mauve.octanews.net!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mail
References: <slrnf2nlsl.1n7o.usenet@elden-pc.moondog.org> <20070422233344.579F.a.NOFFLE@ID-107770.user.individual.net> <slrnf2o4qm.1n7o.usenet@elden-pc.moondog.org> <slrnf2pc9i.5av.chrisgame@URANUS.example.net> <slrnf2pplu.1qnk.usenet@elden-pc.moondog.org> <slrnf2pt1r.5tr.chrisgame@URANUS.example.net> <slrnf2q12h.1qnk.usenet@elden-pc.moondog.org> <slrnf2q3rg.b1f.pjr@pjr.gotdns.org> <slrnf2q7g3.1qnk.usenet@elden-pc.moondog.org> <20070424085807@usenet.piggo.com> <slrnf2s7j4.83q.chrisgame@URANUS.example.net> <20070425223509@usenet.piggo.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnf2vcno.j3f.pjr@pjr.gotdns.org>
Subject: Re: OT: auto followup macro (Was: [slrn] scoring whole threads)
Date: Wed, 25 Apr 2007 19:58:48 +0000
From: Peter J Ross <pjr@example.invalid>
References: <slrnf2nlsl.1n7o.usenet@elden-pc.moondog.org> <20070422233344.579F.a.NOFFLE@ID-107770.user.individual.net> <slrnf2o4qm.1n7o.usenet@elden-pc.moondog.org> <slrnf2pc9i.5av.chrisgame@URANUS.example.net> <slrnf2pplu.1qnk.usenet@elden-pc.moondog.org> <slrnf2pt1r.5tr.chrisgame@URANUS.example.net> <slrnf2q12h.1qnk.usenet@elden-pc.moondog.org> <slrnf2q3rg.b1f.pjr@pjr.gotdns.org> <slrnf2q7g3.1qnk.usenet@elden-pc.moondog.org> <20070424085807@usenet.piggo.com> <slrnf2s7j4.83q.chrisgame@URANUS.example.net> <20070425223509@usenet.piggo.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!mauve.octanews.net!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mail
Newsgroups: news.software.readers
Reply-To: pjr.spam@gmail.com
User-Agent: slrn/0.9.8.1pl2 (Debian)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 61
Organization: Read Free News
NNTP-Posting-Date: 25 Apr 2007 14:58:48 CDT
X-Trace: DXC=Y5d]1LYX<^?\?EKWC1nm7:]AGWjF5PjP9465Ue@WB_5?TSW3_l4;
 JZ<26Z<EbT:a\52XQX54M@Pf2hWjUSN4PCf61IVb4KO9Ik7