[Long stories cut short...]
Is there more documentation than the mere one page on posting that
says "you can set gnus-post-method to some other method"?
I need to use a bizarrely custom method to get news out (e.g. - drop
it explicitly into a spool file in a particular directory so it
interoperates with SLRNPULL); I can't find how to do this.
--
"Surely if the world can't get any other benefit from the existence of
Microsoft, at least people should stop arguing that popularity has any
connection with merit!" -- Brian Harvey <b...@anarres.CS.Berkeley.EDU>
cbbr...@hex.net- <http://www.hex.net/~cbbrowne/ipnntp.html>
> I need to use a bizarrely custom method to get news out (e.g. - drop
> it explicitly into a spool file in a particular directory so it
> interoperates with SLRNPULL); I can't find how to do this.
Sorry that this is not a real help, but I wonder what happens if
nnspool is used for posting...
Does anybody know how to do stuff like this?
kai
--
I like BOTH kinds of music.
cbbr...@news.hex.net (Christopher Browne) writes:
> I'm running GNU Emacs 20.3.1, with GNUS v5.5.
>
> [Long stories cut short...]
>
> Is there more documentation than the mere one page on posting that
> says "you can set gnus-post-method to some other method"?
>
> I need to use a bizarrely custom method to get news out (e.g. - drop
> it explicitly into a spool file in a particular directory so it
> interoperates with SLRNPULL); I can't find how to do this.
As it happens, I just worked on this problem last week. If you use
the normal nnspool defaults, Gnus seems to try to send the news via
inews, and if there isn't a server to take its posting, inews puts the
article into the server feed (/var/spool/news/in.coming). My posting
looks for articles there tweaks them a but to suit slrnpull and drops
them into the slrnpull directory, then calls slrnpull.
Here's a copy of my posting to news.software.readers that enclosed a
listing of the script. I'm sure there are much more civilized ways of
doing things, but sometimes brute force and ignorance is all a problem
merits.
########################################################################
As I mentioned a few days ago, I've been experimenting with Gnus as an
alternative to slrn. I was happy with slrnpull as a means of
obtaining articles so I didn't see any need to configure innd or
leafnode, or anything like that; my SuSE 5.3 system already had inews,
so the articles were ending up in /var/spool/news/in.coming.
My slrnpull system expects to find articles to be posted to be in
/var/spool/slrnpull/out.going, and there is a slight format
difference and the filenames must start with "X". You also need to
add yourself to the news group in /etc/group so you can delete the
news articles as you transfer them to the slrnpull directory. This
script runs on UNIX systems under bash, and should also work under
Korn shell
#!/bin/bash
SERVER=${1:-insert.posting.news.server.here}
SLRNPULL_DIR=${2:-/var/spool/slrnpull}
for F in /var/spool/news/in.coming/*
do
if [ -f $F ]
then
G=${SLRNPULL_DIR}/out.going/X$(basename $F)
echo "<<"$F
echo ">>"$G
sed -e 's/^\./\.\./' $F >$G
rm $F
fi
done
slrnpull -d $SLRNPULL_DIR -h $SERVER --post-only
-----BEGIN PGP SIGNATURE-----
Version: 2.6.2
Comment: Processed by Mailcrypt 3.5.3, an Emacs/PGP interface
iQCVAwUBN6OC+NSR8rI01qX9AQGrkAQAh5pjpsECwCCb1umnd3YOS37UyiHm+wMa
iLTk8RDh6kHEkOwPc2rXyVLJC8mp6xOmXXM9ymNPzOdH+RuZooVdpwDt5pi5GNs3
Boh7hbfpVDRVQJszYT0hIXJyaMQjYPnJcgxxw8Mhu/RsGCp9LcAXZJ5om7Wyuf3E
Fp0mJB0z4DU=
=qqox
-----END PGP SIGNATURE-----
(setq nnspool-inews-program "sh")
(setq nnspool-inews-switches '("-c" "cat >~/.slrnpull/out.going/X$(date +%s)-$$-1.$LOGNAME"))
(setq nnspool-spool-directory "~/.slrnpull/news/")
(setq nnspool-nov-directory "~/.slrnpull/news/")
(setq nnspool-lib-dir "~/.slrnpull/data/")
(setq gnus-select-method '(nnspool ""))
Andras
Good guess; spot on! :-)
Thanks!
--
"If women don't find you handsome, they should at least find you
handy..." -- The Red Green Show
cbbr...@hex.net- <http://www.hex.net/~cbbrowne/ipnntp.html>