🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #250494

[slrn] Bugfix for Mixmaster integration script

#250494
From: Fritz Wuehler
Date: Thu, 31 May 2012 15:28
56 lines
4082 bytes
I've discovered that when using the "mixmaster.sl" script (from
message-id <af850f89540eb06999b61dfc55ae739a@dizum.com> ), slrn passes
obnoxiously large headers on to mixmaster.  Perhaps rightly so, but
mixmaster drops the ball when it gets a header like this:

bighdr] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
bighdr] 	d=frell.theremailer.net; s=remailer; 
bighdr] 	h=Date:Message-ID:Subject:Newsgroups:Comments:From;
bighdr] 	bh=y5AjBf6JKIyqBFOspf256AFJAddrvDeZtVH1kw2aedE=; 
bighdr] 	b=AUx58OoRCk/O1ep/SxBZ2xj2uQ7Nn3VQ4sR2zjb6Jq36QDmWGzQVOm5kwsdY6gD1zyIXO6s2zDNI2LtRkyvvgkr1EqCH+p4poltk3HB9JBox2P0XnuIkn1H7VbCm+PEZueoJ69dSHDk89toeK4ABq6GvZMH+No1iX/O3ae0og49OwKxvWwe1gvFS3q3KQcyZVvg0DXjk/ilwlSK0wOd8dC3mVGFPWNBfNtmhbDn4AJAEDhdBIMq8b8GlH908vdyTqNgh1cEjHg9X4YxAAK2b8mJqzhXURdRIrtqJSoq7t+jE4PtZpjIcThXxtVEs4SpJDSr4ALilWcZVyusIzNtYYik=;
bighdr] From: Fritz Wuehler <fritz@spamexpire-201205.rodent.frell.theremailer.net>
bighdr] Comments: This message did not originate from the Sender address above.
bighdr] 	It was remailed automatically by anonymizing remailer software.
bighdr] 	Please report problems or inappropriate use to the
bighdr] 	remailer administrator at <abuse@frell.theremailer.net>.
bighdr] 	Identifying the real sender is technically impossible.
bighdr] Subject: Re: [slrn] mixmaster integration
bighdr] References: <ad9957e21f48a63d9e190796973e8b67@dizum.com>
bighdr] Message-ID: <54763032884ffe94009aa425c75418b9@msgid.frell.theremailer.net>
bighdr] Precedence: anon
bighdr] Date: Tue, 29 May 2012 03:15:37 +0200
bighdr] Newsgroups: news.software.readers,alt.privacy.anon-server
bighdr] Path: aioe.org!news.mixmin.net!mail2news.mixmin.net!not-for-mail
bighdr] Lines: 7
bighdr] Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net
bighdr] Xref: aioe.org news.software.readers:20762 alt.privacy.anon-server:26415

The problem is with either the "DKIM-Signature:" or the "Comments:".
Mixmaster does not need them, so the fix is to have a shell wrapper
script that strips them out.  Instead of calling mixmaster directly,
have mixmaster.sl call this script instead:

mm.sh]  #!/bin/bash
mm.sh] 
mm.sh]  typeset script_pathname=${0}
mm.sh] 
mm.sh]  case "$1" in
mm.sh]      *txt)
mm.sh]  	tmp_fn="$1"
mm.sh] 
mm.sh]  	emacs --eval '(progn (find-file "'$tmp_fn'")(post-mode))'
mm.sh]  	;;
mm.sh]      *)
mm.sh]  	original_editor=$EDITOR
mm.sh]  	EDITOR=$script_pathname
mm.sh]  	formail -I DKIM-Signature: -I Comments: | mixmaster $*
mm.sh]  	EDITOR=$original_editor
mm.sh]  	;;
mm.sh]  esac

Note that you must have emacs, formail, and emacs post-mode installed
for it to work.

To test if you have the bug, try replying to this message-id:
<54763032884ffe94009aa425c75418b9@msgid.frell.theremailer.net>
Technical Details
Message-ID: <ec060a4abcd46e5a67b824b63c7f2799@msgid.frell.theremailer.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!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!nntp.giganews.com!feed.xsnews.nl!border-2.ams.xsnews.nl!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.mixmin.net!news2.arglkargh.de!news.theremailer.net!frell.theremailer.net!anonymous

Show Full Headers
Complete Article Headers
Message-ID: <ec060a4abcd46e5a67b824b63c7f2799@msgid.frell.theremailer.net>
Subject: [slrn] Bugfix for Mixmaster integration script
Date: Thu, 31 May 2012 17:28:23 +0200
From: Fritz Wuehler <fritz@spamexpire-201205.rodent.frell.theremailer.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!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!nntp.giganews.com!feed.xsnews.nl!border-2.ams.xsnews.nl!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!news.mixmin.net!news2.arglkargh.de!news.theremailer.net!frell.theremailer.net!anonymous
Comments: This message did not originate from the Sender address above.
 It was remailed automatically by anonymizing remailer software.
 Please report problems or inappropriate use to the
 remailer administrator at <abuse@frell.theremailer.net>.
 Identifying the real sender is technically impossible.
Newsgroups: news.software.readers
Precedence: anon
Mail-To-News-Contact: abuse@frell.theremailer.net
Organization: Frell Anonymous Remailer
Lines: 55
X-Original-Bytes: 3757