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


Groups > comp.misc > #4801 > unrolled thread

Public Service Announcement

Started byRS Wood <rsw@therandymon.com>
First post2014-09-10 18:09 +0000
Last post2014-09-12 11:31 +0000
Articles 2 — 1 participant

Back to article view | Back to comp.misc


Contents

  Public Service Announcement RS Wood <rsw@therandymon.com> - 2014-09-10 18:09 +0000
    Re: Public Service Announcement RS Wood <rsw@therandymon.com> - 2014-09-12 11:31 +0000

#4801 — Public Service Announcement

FromRS Wood <rsw@therandymon.com>
Date2014-09-10 18:09 +0000
SubjectPublic Service Announcement
Message-ID<c7bifkFe8beU1@mid.individual.net>
I don't plan on posting this PSA regularly, but it's been awhile since I
last posted it and thought it might be worth doing it again from time to
time (but not monthly or as regular as that).

In February 2014 we took a stab at a charter.  It's here, if anyone
would like to read, modify, or discuss:
http://compmisc.wikia.com/wiki/Comp.misc_newsgroup_Wiki

I am trying to post comp related things here.  Non-comp stuff was mostly
going to misc.news.internet.discuss (astronomy, biology, physics, social
media, gaming).  But that newsgroup is much lower volume and
increasingly I'm just not posting that kind of stuff.  I'm crossposting
to relevant other groups where it seems that's helpful, and hopefully
that leads people to other NGs as well.

I use the newsbeuter RSS reader plus a small, custom bash script to post
articles from an RSS feed to this newsgroup.  You can find it at the
wiki if you're interested.  The script handles posting to either
comp.misc or misc.news.internet.discuss, adds [CM] to any article cross
posted to another group, and sets the followup to that group when cross
posting.

Thanks to everyone for all the great content and discussion on this
newsgroup!

[toc] | [next] | [standalone]


#4839

FromRS Wood <rsw@therandymon.com>
Date2014-09-12 11:31 +0000
Message-ID<20140912113142.c5b83a03.rsw@therandymon.com>
In reply to#4801
On 10 Sep 2014 18:09:57 GMT
RS Wood <rsw@therandymon.com> wrote:

> I use the newsbeuter RSS reader plus a small, custom bash script to post
> articles from an RSS feed to this newsgroup.  You can find it at the
> wiki if you're interested.  The script handles posting to either
> comp.misc or misc.news.internet.discuss, adds [CM] to any article cross
> posted to another group, and sets the followup to that group when cross
> posting.

Follow-up:  I realize the script isn't easy to find on that wiki.
While I fix that, let me just post it here, for the record and in hopes
it's useful.  All you need to do is download postnews (a 10 line python
script) and put it in your $BIN directory.  Run newsbeuter to read your
RSS feeds, and pipe any article you want to post by hitting the pipe
key and sending it to this script, which will call postnews at the end
to do the actual NNTP work.  Contact me if you have questions - the
above email works.

#! /usr/local/bin/bash
TEMPTEXT='/tmp/slashtemptext'
TEMPHEADERS='/tmp/slashtempheaders'
TEMPARTICLE='/tmp/slashtemparticle'
DEPT=''
SUBJ=''
XPOST=''
GROOP=''
POSTIT=''

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

while read line;
do
        echo "$line" >> $TEMPTEXT
done

echo "From: YOURNAME HERE  <YOUR@EMAIL.COM>" > $TEMPHEADERS
echo "Content-Type: text/plain; charset=UTF-8" >> $TEMPHEADERS


echo ""
echo "This is a comp.misc/misc.news.int.discuss post.  Enter Subject line:"
read SUBJ < /dev/tty
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."
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 "----"
head -20 $TEMPARTICLE

echo "Post it? (only 'y' will post)"
read POSTIT < /dev/tty
if [ "$POSTIT" = "y" ];
        then
        exec ~/bin/postnews  \
		--user MYUSERNAME \
		--pass MYPASSWORD  \
		-f $TEMPARTICLE news.solani.org
else echo "Not posted."
fi

[toc] | [prev] | [standalone]


Back to top | Article view | comp.misc


csiph-web