🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #26010

Re: Slrn 0.9.0.0 & using different reply-to addresses for followups and private replies

#26010
From: Bennett Todd
Date: Mon, 16 Sep 1996 00:00
68 lines
3018 bytes
On 16 Sep 1996 12:47:28 GMT, Alain Knaff <Alain.Knaff@|nospam|poboxes.com> wrote:
> Is it possible to generate different reply-to adresses for followups
>and private replies. Indeed, in order to cut short on unsolicited
>commercial e-mail, I use Alain.Knaff@|nospam|poboxes.com as reply-to
>address in all news postings.  The idea behind this is that a a human
>reader will understand how to transform that into a workable address
>(remove |nospam|), whereas a bot trolling for adresses won't.

Awesome! Stunning! I ___Love___ it. I guess I'll have to try to figure out how
to do that for myself!

> Unfortunately, now this doctored address also shows up in private
>replies, where they are inappropriate.  Is there any way to use slang
>to make slrn behave differently for replies and followups?

Well, I'm using a script I snarfed off this newsgroup some time ago, that uses
elm(1) to send the email. The as I recall the excuse for using elm was it got
you elm's alias expansion --- but the reason I do it is for the local file
copy; I have elm configured to save copies of messages I send in the same
folder (based on the recipient's login name) where I fill file any subsequent
email with that user.

This script is glued in to slrn via

	set sendmail_command "/path/to/newselm"

in .slrnrc. I didn't bother modifying it, since it worked for me. I don't know
awk particularly, so I suspect when I get around to hacking on it I'll shift
it to perl. But I _think_ it would actually solve the problem you are having
directly, since, if I correctly understand what it's doing, elm will be
generating the From: on its own.

-Bennett

#!/bin/sh

TMPMAIL=$HOME/.newselm.$$

trap "rm -f $TMPMAIL; exit 1" 0 1 2 15

myexec=`awk -v q=\' '
  BEGIN{header=1}
  /^To: /{
	to=substr($0,5)
	sub("[(].*[)]","",to)
	sub("[ \t]","",to)
	sub(".*<","",to)
	sub(">.*","",to)
	gsub(q,"",to)
  }
  /^Subject: /{subj=substr($0,10)}
  /^$/ && header==1 {
	gsub(q,"",subj)
	header=0
	printf "elm -s %s%s%s %s%s%s", q,subj,q,q,to,q
	next
  }
  header==0 {print >tmpmail}
' tmpmail=$TMPMAIL -`

eval $myexec <$TMPMAIL || elm -s "newselm failed!" `whoami` <$TMPMAIL
rm -f $TMPMAIL
trap "" 0
exit 0


Technical Details
Message-ID: <slrn53rjlh.o4f.bet@onyx.interactive.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.mbox.zip!not-for-mail
References: <slrn53qj40.r12.Alain.Knaff@choiseul.inrialpes.fr>

Show Full Headers
Complete Article Headers
Message-ID: <slrn53rjlh.o4f.bet@onyx.interactive.net>
Subject: Re: Slrn 0.9.0.0 & using different reply-to addresses for followups and private replies
Date: Mon, 16 Sep 1996 00:00:00 +0000
From: bet@interactive.net (Bennett Todd)
References: <slrn53qj40.r12.Alain.Knaff@choiseul.inrialpes.fr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 180981383
X-nntp-posting-host: onyx.interactive.net
Sender: news@interactive.net (System Administrator)
X-nntp-posting-user: bet
X-trace: 842911409/26926
Organization: IBS Interactive
Newsgroups: news.software.readers