Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | RS Wood <rsw@therandymon.com> |
|---|---|
| Newsgroups | comp.misc |
| Subject | Piping to comp.misc. A revised script. |
| Date | 2014-03-03 20:44 +0000 |
| Organization | solani.org |
| Message-ID | <lf2pk0$fig$4@solani.org> (permalink) |
| References | <le8eer$uel$2@solani.org> <4712#13870@usenet.squte.com> <lf1h1g$2td$1@solani.org> |
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
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