🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #259973

Re: [slrn] Automattic subject modification

#259973
From: J.B. Nicholson
Date: Fri, 15 Jan 2016 04:23
27 lines
2684 bytes
Doug713705 <doug.letough@free.fr> wrote:
> That what I thought at first and I already succeed in using 
> replace_article(). 

It's good that you're experimenting. Since you've posted no code it's
hard to know what you tried.

> It does the job on screen but it does not modify the article and when I 
> followup as usual such a replaced article, the subject is still based 
> on the original one as "Re: <original subject>" althought some other 
> parts of the article are replaced. The artcile body  part and some of 
> the headers are replaced but *not* the subject header or the References 
> header that are generated by slrn prior to passing it to the editor.

Consider trying a combination of slrn macro plus editor macro: a slrn
macro that sets the tempfile to a new known place, sets the slrn
editor setting to call an editor that will run a macro on load, then
calls the intrinsic to send a reply or post a followup. Then also make
an editor macro that replaces the subject as needed. After
posting/replying, the slrn macro can restore the previous values of
the modified slrn settings to what they were before the slrn macro
began. Thus this macro shouldn't interfere with normal
posting/replying.

I don't quite see the point in overriding the references header as
that risks breaking threading. Regardless of what you change the
subject to, if you're posting a followup it should thread properly.
Technical Details
Message-ID: <slrnn9gt1i.65f.jbn@forestfield.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.(126883).mbox.7z!not-for-mail
References: <n742hs$8j2$1@golgoth98.redatomik.org> <slrnn9b613.39r.jbn@forestfield.org> <n7554d$olo$1@golgoth98.redatomik.org> <slrnn9e654.h97.jbn@forestfield.org> <n786j1$47m$1@golgoth98.redatomik.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnn9gt1i.65f.jbn@forestfield.org>
Subject: Re: [slrn] Automattic subject modification
Date: Fri, 15 Jan 2016 04:23:14 +0000
From: "J.B. Nicholson" <jbn@forestfield.org>
References: <n742hs$8j2$1@golgoth98.redatomik.org> <slrnn9b613.39r.jbn@forestfield.org> <n7554d$olo$1@golgoth98.redatomik.org> <slrnn9e654.h97.jbn@forestfield.org> <n786j1$47m$1@golgoth98.redatomik.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.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Organization: albasani.net
Lines: 27
X-Trace: news.albasani.net C7rp/eF3AQgqihP6vwe4hiswG6JMOqOpgq2LkjsY1sPs+fGIYwhjHianyBU2vT96rTuIs2CyRlF4fmeh1LNQDw==
NNTP-Posting-Date: Fri, 15 Jan 2016 04:23:14 +0000 (UTC)
Injection-Info: news.albasani.net; logging-data="IPRmS2rArzen8e2vX4Bnt9iHoet8kzUu8yWLebp/i16zqFQsD76IZrHEudoQtAjdFz3IJc59j++P7Mvrxa0HV12dBnHLLdNmF+trGEonpzhQCBRbTuSTVo0TaC4gBWw3"; mail-complaints-to="abuse@albasani.net"
User-Agent: slrn/1.0.2 (Linux)
Cancel-Lock: sha1:tqbJwMZ5Xdu9rpDzPNAeu91DVmM=
X-Received-Bytes: 2498
X-Received-Body-CRC: 4005954053