Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.misc > #1218

Piping to comp.misc. A revised script.

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From RS Wood <rsw@therandymon.com>
Newsgroups comp.misc
Subject Piping to comp.misc. A revised script.
Date Mon, 3 Mar 2014 20:44:48 +0000 (UTC)
Organization solani.org
Lines 84
Message-ID <lf2pk0$fig$4@solani.org> (permalink)
References <le8eer$uel$2@solani.org> <4712#13870@usenet.squte.com> <lf1h1g$2td$1@solani.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
X-Trace solani.org 1393879488 15952 eJwNwoERACEIA7CVRNsC47wo+4/gX8IlUzlEgc224PlBd5pnKkLc0Tn20JeFw/JEQXaPMNcDAvAQMw== (3 Mar 2014 20:44:48 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Mon, 3 Mar 2014 20:44:48 +0000 (UTC)
User-Agent slrn/pre1.0.0-18 (Linux)
X-User-ID eJwFwYEBwCAIA7CXAEuBc5za/09YkovOU2ASqRQgTmF2SacDBtR3rUFmr44d77rcSvE49n4HExBY
Cancel-Lock sha1:tDDMqVq/e+vNNKhnAvjvRZ4IqAY=
X-NNTP-Posting-Host eJwFwYkRwDAIA7CV0gPbdBzCs/8IkWD8WHKCjsUe8M+uvZ7EXGRc01Gq2etto44aVowbXPMAML0R1A==
Xref csiph.com comp.misc:1218

Show key headers only | View raw


Here's a revised script.  It prompts for whether the post will go to
comp.misc or to misc.news.internet.discuss.  It then prompts for a
single group to which to crosspost (or none).  If there is a crosspost,
it automatically prefixes the title with [CM] to permit the users in the
other group to filter out this kind of post, and sets the follow-up to
that group rather than comp.misc.

Hope it prompts some of you into action.  It amazes me that on a
newsgroup that's had nothing but robospam and roboporn for 5+ years, a
guy posting links to tech articles be accused of spamming.  Only on
Usenet are the trolls immortal. I resolve to not feed them.

As before, this script is the glue between newsbeuter and postnews.py

#! /usr/local/bin/bash

TEMPTEXT='/tmp/slashtemptext'
TEMPHEADERS='/tmp/slashtempheaders'
TEMPARTICLE='/tmp/slashtemparticle'
DEPT=''
SUBJ=''
XPOST=''
GROOP=''

# CLEAN UP THIS MESS
for i in $TEMPTEXT $TEMPHEADERS $TEMPARTICLE 
	do 
	echo "Nuking $i"
	if [ -e $i ]; then rm $i; fi
	done

#SPAFF THE TEXT FROM NEWSBEUTER
while read line;
do
	echo "$line" >> $TEMPTEXT
done

# THE BASICS
echo "From: Obnoxious Troll <whine@usenet.com>" > $TEMPHEADERS
echo "Content-Type: text/plain; charset=UTF-8" >> $TEMPHEADERS

echo ""
echo "This is going to Usenet.  Enter Subject line:"
read SUBJ < /dev/tty

# SET TITLE, FOLLOW-UP, AND GROUP BASED ON USER CHOICES
echo ""
echo "Send to comp.misc or misc.news.internet.discuss?"
echo "[C] comp.misc     [M] m.n.i.d."
read SENDTO < /dev/tty

case $SENDTO in
	[cC]) GROOP='comp.misc' ;;
	[mM]) GROOP='misc.news.internet.discuss' ;;
esac

echo ""
echo "Crosspost?  Type one additional group or ENTER for none."  
echo "Follow-up will also be set: eg. misc.rabid.bunnies,comp.obnoxious.troll"
read XPOST < /dev/tty

if  [ "$XPOST" != "" ];
	then
		SUBJ="[CM] ${SUBJ}"
		GROOP="$GROOP,$XPOST"
		echo "Subject: $SUBJ" >> $TEMPHEADERS
		echo "Followup-To: $XPOST" >> $TEMPHEADERS
	else
		echo "Subject: $SUBJ" >> $TEMPHEADERS
fi
		
echo "Newsgroups: $GROOP" >> $TEMPHEADERS

echo ""
echo "From which dept? (eg. Happy go Lucky). I'll add the quotes."
read DEPT < /dev/tty

echo "" >> $TEMPHEADERS
echo "From the «$DEPT» department:" >> $TEMPHEADERS
cat $TEMPHEADERS $TEMPTEXT > $TEMPARTICLE
echo "----"
less $TEMPARTICLE

exec postnews --user USERNAME pass MYPASSWORD -f $TEMPARTICLE MYNSP

Back to comp.misc | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Piping articles to Usenet: how-to RS Wood <rsw@therandymon.com> - 2014-02-21 20:54 +0000
  Re: Piping articles to Usenet: how-to Mike Sanders <mike@taco-shack.cow> - 2014-02-22 00:09 +0000
  Re: Piping articles to Usenet  how-to "tdk" <forum.tdk@squte.com> - 2014-03-02 16:30 -0600
    Re: Piping articles to Usenet  how-to RS Wood <rsw@therandymon.com> - 2014-03-03 09:12 +0000
      Piping to comp.misc.  A revised script. RS Wood <rsw@therandymon.com> - 2014-03-03 20:44 +0000

csiph-web