🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #251420

[slrn] mixmaster scripts- slrn should form replies, not mixmaster

#251420
From: Anonymous
Date: Mon, 10 Sep 2012 17:21
65 lines
3175 bytes
The mixmaster scripts that folks have posted here pipe the unquoted
original message to mixmaster.  Mixmaster then forms it into a reply,
lets the user edit it, and sends it.  Theoretically, that works well.
The problem is that mixmaster is unreliable, and simultaneously
incapable of saving plain text copies.  When the message fails to
post, the user must re-compose the message from scratch.

So another approach is needed.  SLRN should really do more of the
work.  SLRN should form the reply and launch the editor, because SLRN
is already capable of saving local copies of what gets sent.  Lastly,
SLRN should pipe the completed and saved message to mixmaster.

FWIW, this is the current (unreliable) approach:

Add this line to .slrnrc:

  interpret "mixmaster.sl"

files:

mixmaster.sl> define mixmaster_ff ()
mixmaster.sl> {
mixmaster.sl>     pipe_article("mixmaster.sh -ff");
mixmaster.sl> }
mixmaster.sl> 
mixmaster.sl> definekey ("mixmaster_ff", "&", "article");
mixmaster.sl> 
mixmaster.sl> define mixmaster_fr ()
mixmaster.sl> {
mixmaster.sl>     pipe_article("mixmaster.sh -fr");
mixmaster.sl> }
mixmaster.sl> 
mixmaster.sl> definekey ("mixmaster_fr", "\e&", "article");

mixmaster.sh> #!/bin/bash
mixmaster.sh> 
mixmaster.sh> typeset script_pathname=${0}
mixmaster.sh> typeset script_name=${script_pathname##*/}
mixmaster.sh> 
mixmaster.sh> case "$1" in
mixmaster.sh>     *txt)
mixmaster.sh> 	tmp_fn="$1"
mixmaster.sh> 
mixmaster.sh> 	emacs --eval "(progn (find-file \"$tmp_fn\")(post-mode))"
mixmaster.sh> 	;;
mixmaster.sh>     -ff|-fr)
mixmaster.sh> 	#slrn invocation
mixmaster.sh> 	original_editor=$EDITOR
mixmaster.sh> 	EDITOR=$script_pathname
mixmaster.sh> 	formail -I DKIM-Signature: -I Comments: | mixmaster $*
mixmaster.sh> 	EDITOR=$original_editor
mixmaster.sh> 	;;
mixmaster.sh>     *)
mixmaster.sh> 	#CLI invocation
mixmaster.sh> 	original_editor=$EDITOR
mixmaster.sh> 	EDITOR=$script_pathname
mixmaster.sh> 	mixmaster $*
mixmaster.sh> 	EDITOR=$original_editor
mixmaster.sh> 	;;	
mixmaster.sh> esac

Would any S-Lang gurus mind coming up with a new mixmaster.sl script
that formats a reply, lauches the editor, and saves before doing a
pipe_article?
Technical Details
Message-ID: <d8a2785f739c998713eeb4214dfc7197@breaka.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeeder.ewetel.de!lightspeed.eweka.nl!81.171.88.16.MISMATCH!hq-usenetpeers.eweka.nl!81.171.88.250.MISMATCH!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!news.alt.net!news.dizum.com!sewer-output!mail2news

Show Full Headers
Complete Article Headers
Message-ID: <d8a2785f739c998713eeb4214dfc7197@breaka.net>
Subject: [slrn] mixmaster scripts- slrn should form replies, not mixmaster
Date: Mon, 10 Sep 2012 11:21:13 -0600
From: Anonymous <noreply@breaka.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeeder.ewetel.de!lightspeed.eweka.nl!81.171.88.16.MISMATCH!hq-usenetpeers.eweka.nl!81.171.88.250.MISMATCH!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!news.alt.net!news.dizum.com!sewer-output!mail2news
Newsgroups: news.software.readers
Mail-To-News-Contact: abuse@dizum.com
Organization: mail2news@dizum.com
Lines: 64
X-Original-Bytes: 2822