🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #198492

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

#198492
From: Troy Piggins
Date: Wed, 25 Apr 2007 12:44
57 lines
3472 bytes
* 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. **

-- 
Troy Piggins                                         ,-O   (o-    O  
slrn macros and howto: http://piggo.com/~troy/slrn  O   )  //\     O
http://piggo.com/~troy                               `-O   V_/_  OOO
RLU#415538
Technical Details
Message-ID: <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!nntp.giganews.com!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!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>

Show Full Headers
Complete Article Headers
Message-ID: <20070425223509@usenet.piggo.com>
Subject: OT: auto followup macro (Was: [slrn] scoring whole threads)
Date: Wed, 25 Apr 2007 22:44:09 +1000
From: Troy Piggins <usenet@piggo.com>
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>
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!nntp.giganews.com!newsfeed.iinet.net.au!newsfeed.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsstorage1.iinet.net.au!per-qv1-newsreader-01.iinet.net.au!not-for-mail
Newsgroups: news.software.readers
X-NNTP-Proxy: Leafnode-2
 (http://www-dt.e-technik.uni-dortmund.de/~ma/leafnode/beta/)
User-Agent: slrn/0.9.8.1pl1/rt (Linux)
Lines: 57
NNTP-Posting-Host: 203.206.121.193
X-Trace: 1177505376 per-qv1-newsreader-01.iinet.net.au 17237 203.206.121.193