🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
1 messages
1 total messages Started by Bennett Todd Mon, 16 Sep 1996 00:00
Re: Slrn 0.9.0.0 & using different reply-to addresses for followups and private replies
#26010
Author: 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


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads